~ubuntu-branches/ubuntu/precise/libmtp/precise-updates

« back to all changes in this revision

Viewing changes to src/ptp.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-01-13 17:41:10 UTC
  • mfrom: (16.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20120113174110-2u2iues993252shk
Tags: 1.1.2-2
Use libusb-dev instead of libusb-1.0-0-dev on non-linux archs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
419
419
 
420
420
#define PTP_OC_NIKON_GetDevicePTPIPInfo 0x90E0
421
421
 
 
422
/* Casio EX-F1 (from http://code.google.com/p/exf1ctrl/ ) */
 
423
#define PTP_OC_CASIO_STILL_START        0x9001
 
424
#define PTP_OC_CASIO_STILL_STOP         0x9002
 
425
 
 
426
#define PTP_OC_CASIO_FOCUS              0x9007
 
427
#define PTP_OC_CASIO_CF_PRESS           0x9009
 
428
#define PTP_OC_CASIO_CF_RELEASE         0x900A
 
429
#define PTP_OC_CASIO_GET_OBJECT_INFO    0x900C
 
430
 
 
431
#define PTP_OC_CASIO_SHUTTER            0x9024
 
432
#define PTP_OC_CASIO_GET_STILL_HANDLES  0x9027
 
433
#define PTP_OC_CASIO_STILL_RESET        0x9028
 
434
#define PTP_OC_CASIO_HALF_PRESS         0x9029
 
435
#define PTP_OC_CASIO_HALF_RELEASE       0x902A
 
436
#define PTP_OC_CASIO_CS_PRESS           0x902B
 
437
#define PTP_OC_CASIO_CS_RELEASE         0x902C
 
438
 
 
439
#define PTP_OC_CASIO_ZOOM               0x902D
 
440
#define PTP_OC_CASIO_CZ_PRESS           0x902E
 
441
#define PTP_OC_CASIO_CZ_RELEASE         0x902F
 
442
 
 
443
#define PTP_OC_CASIO_MOVIE_START        0x9041
 
444
#define PTP_OC_CASIO_MOVIE_STOP         0x9042
 
445
#define PTP_OC_CASIO_MOVIE_PRESS        0x9043
 
446
#define PTP_OC_CASIO_MOVIE_RELEASE      0x9044
 
447
#define PTP_OC_CASIO_GET_MOVIE_HANDLES  0x9045
 
448
#define PTP_OC_CASIO_MOVIE_RESET        0x9046
 
449
 
 
450
#define PTP_OC_CASIO_GET_OBJECT         0x9025
 
451
#define PTP_OC_CASIO_GET_THUMBNAIL      0x9026
 
452
 
422
453
/* Microsoft / MTP extension codes */
423
454
 
424
455
#define PTP_OC_MTP_GetObjectPropsSupported      0x9801
510
541
#define PTP_OC_OLYMPUS_GetCameraControlMode             0x910a
511
542
#define PTP_OC_OLYMPUS_SetCameraControlMode             0x910b
512
543
#define PTP_OC_OLYMPUS_SetWBRGBGain                     0x910c
 
544
#define PTP_OC_OLYMPUS_GetDeviceInfo                    0x9301
 
545
#define PTP_OC_OLYMPUS_Init1                            0x9302
513
546
#define PTP_OC_OLYMPUS_SetDateTime                      0x9402
514
547
#define PTP_OC_OLYMPUS_GetDateTime                      0x9482
515
548
#define PTP_OC_OLYMPUS_SetCameraID                      0x9501
1464
1497
#define PTP_DPC_NIKON_JPEG_Compression_Policy           0xD031
1465
1498
#define PTP_DPC_NIKON_ColorSpace                        0xD032
1466
1499
#define PTP_DPC_NIKON_AutoDXCrop                        0xD033
 
1500
#define PTP_DPC_NIKON_VideoMode                         0xD036
 
1501
#define PTP_DPC_NIKON_EffectMode                        0xD037
1467
1502
#define PTP_DPC_NIKON_CSMMenuBankSelect                 0xD040
1468
1503
#define PTP_DPC_NIKON_MenuBankNameA                     0xD041
1469
1504
#define PTP_DPC_NIKON_MenuBankNameB                     0xD042
1491
1526
#define PTP_DPC_NIKON_ExposureBaseMatrix                0xD05A
1492
1527
#define PTP_DPC_NIKON_ExposureBaseCenter                0xD05B
1493
1528
#define PTP_DPC_NIKON_ExposureBaseSpot                  0xD05C
1494
 
#define PTP_DPC_NIKON_LiveViewAF                        0xD05D
 
1529
#define PTP_DPC_NIKON_LiveViewAFArea                    0xD05D
1495
1530
#define PTP_DPC_NIKON_AELockMode                        0xD05E
1496
1531
#define PTP_DPC_NIKON_AELAFLMode                        0xD05F
 
1532
#define PTP_DPC_NIKON_LiveViewAFFocus                   0xD061
1497
1533
#define PTP_DPC_NIKON_MeterOff                          0xD062
1498
1534
#define PTP_DPC_NIKON_SelfTimer                         0xD063
1499
1535
#define PTP_DPC_NIKON_MonitorOff                        0xD064
1500
1536
#define PTP_DPC_NIKON_ImgConfTime                       0xD065
 
1537
#define PTP_DPC_NIKON_AutoOffTimers                     0xD066
1501
1538
#define PTP_DPC_NIKON_AngleLevel                        0xD067
1502
1539
#define PTP_DPC_NIKON_D1ShootingSpeed                   0xD068 /* continous speed low */
1503
1540
#define PTP_DPC_NIKON_D2MaximumShots                    0xD069
1535
1572
#define PTP_DPC_NIKON_FunctionButton2                   0xD08C
1536
1573
#define PTP_DPC_NIKON_AFAreaPoint                       0xD08D
1537
1574
#define PTP_DPC_NIKON_NormalAFOn                        0xD08E
 
1575
#define PTP_DPC_NIKON_CleanImageSensor                  0xD08F
1538
1576
#define PTP_DPC_NIKON_ImageCommentString                0xD090
1539
1577
#define PTP_DPC_NIKON_ImageCommentEnable                0xD091
1540
1578
#define PTP_DPC_NIKON_ImageRotation                     0xD092
1541
1579
#define PTP_DPC_NIKON_ManualSetLensNo                   0xD093
1542
1580
#define PTP_DPC_NIKON_MovScreenSize                     0xD0A0
1543
1581
#define PTP_DPC_NIKON_MovVoice                          0xD0A1
 
1582
#define PTP_DPC_NIKON_MovMicrophone                     0xD0A2
1544
1583
#define PTP_DPC_NIKON_Bracketing                        0xD0C0
1545
1584
#define PTP_DPC_NIKON_AutoExposureBracketStep           0xD0C1
1546
1585
#define PTP_DPC_NIKON_AutoExposureBracketProgram        0xD0C2
1560
1599
#define PTP_DPC_NIKON_AutoOffInfo                       0xD0F4
1561
1600
#define PTP_DPC_NIKON_SelfTimerShootNum                 0xD0F5
1562
1601
#define PTP_DPC_NIKON_VignetteCtrl                      0xD0F7
 
1602
#define PTP_DPC_NIKON_AutoDistortionControl             0xD0F8
 
1603
#define PTP_DPC_NIKON_SceneMode                         0xD0F9
1563
1604
#define PTP_DPC_NIKON_ExposureTime                      0xD100  /* Shutter Speed */
1564
1605
#define PTP_DPC_NIKON_ACPower                           0xD101
1565
1606
#define PTP_DPC_NIKON_WarningStatus                     0xD102
1701
1742
#define PTP_DPC_OLYMPUS_CustomWB                        0xD10B
1702
1743
#define PTP_DPC_OLYMPUS_CustomWBValue                   0xD10C
1703
1744
#define PTP_DPC_OLYMPUS_ExposureTimeEx                  0xD10D
1704
 
#define PTP_DPC_OLYMPUS_BulbModeee                      0xD10E
 
1745
#define PTP_DPC_OLYMPUS_BulbMode                        0xD10E
1705
1746
#define PTP_DPC_OLYMPUS_AntiMirrorMode                  0xD10F
1706
1747
#define PTP_DPC_OLYMPUS_AEBracketingFrame               0xD110
1707
1748
#define PTP_DPC_OLYMPUS_AEBracketingStep                0xD111
1773
1814
#define PTP_DPC_OLYMPUS_ISOBracket                      0xD15D
1774
1815
#define PTP_DPC_OLYMPUS_MyModeStatus                    0xD15E
1775
1816
 
 
1817
/* Casio EX-F1 */
 
1818
#define PTP_DPC_CASIO_MONITOR           0xD001 
 
1819
#define PTP_DPC_CASIO_STORAGE           0xD002 //Not reported by DeviceInfo?
 
1820
#define PTP_DPC_CASIO_UNKNOWN_1         0xD004
 
1821
#define PTP_DPC_CASIO_UNKNOWN_2         0xD005
 
1822
#define PTP_DPC_CASIO_UNKNOWN_3         0xD007
 
1823
#define PTP_DPC_CASIO_RECORD_LIGHT      0xD008
 
1824
#define PTP_DPC_CASIO_UNKNOWN_4         0xD009
 
1825
#define PTP_DPC_CASIO_UNKNOWN_5         0xD00A
 
1826
#define PTP_DPC_CASIO_MOVIE_MODE        0xD00B
 
1827
#define PTP_DPC_CASIO_HD_SETTING        0xD00C
 
1828
#define PTP_DPC_CASIO_HS_SETTING        0xD00D
 
1829
#define PTP_DPC_CASIO_CS_HIGH_SPEED     0xD00F
 
1830
#define PTP_DPC_CASIO_CS_UPPER_LIMIT    0xD010
 
1831
#define PTP_DPC_CASIO_CS_SHOT           0xD011
 
1832
#define PTP_DPC_CASIO_UNKNOWN_6         0xD012
 
1833
#define PTP_DPC_CASIO_UNKNOWN_7         0xD013
 
1834
#define PTP_DPC_CASIO_UNKNOWN_8         0xD015
 
1835
#define PTP_DPC_CASIO_UNKNOWN_9         0xD017
 
1836
#define PTP_DPC_CASIO_UNKNOWN_10        0xD018
 
1837
#define PTP_DPC_CASIO_UNKNOWN_11        0xD019
 
1838
#define PTP_DPC_CASIO_UNKNOWN_12        0xD01A
 
1839
#define PTP_DPC_CASIO_UNKNOWN_13        0xD01B
 
1840
#define PTP_DPC_CASIO_UNKNOWN_14        0xD01C
 
1841
#define PTP_DPC_CASIO_UNKNOWN_15        0xD01D
 
1842
#define PTP_DPC_CASIO_UNKNOWN_16        0xD020
 
1843
#define PTP_DPC_CASIO_UNKNOWN_17        0xD030
 
1844
#define PTP_DPC_CASIO_UNKNOWN_18        0xD080
 
1845
 
1776
1846
/* MTP specific Object Properties */
1777
1847
#define PTP_OPC_StorageID                               0xDC01
1778
1848
#define PTP_OPC_ObjectFormat                            0xDC02
2071
2141
        PTPCanon_Property       *canon_props;
2072
2142
        int                     nrofcanon_props;
2073
2143
        int                     canon_viewfinder_on;
 
2144
        int                     canon_event_mode;
2074
2145
 
2075
2146
        /* PTP: Canon EOS event queue */
2076
2147
        PTPCanon_changes_entry  *backlogentries;
2488
2559
 **/
2489
2560
#define ptp_canon_eos_end_viewfinder(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_TerminateViewfinder,0)
2490
2561
uint16_t ptp_canon_eos_get_viewfinder_image (PTPParams* params, unsigned char **data, unsigned int *size);
 
2562
uint16_t ptp_canon_eos_get_viewfinder_image_handler (PTPParams* params, PTPDataHandler*);
2491
2563
uint16_t ptp_canon_get_objecthandle_by_name (PTPParams* params, char* name, uint32_t* objectid);
2492
2564
uint16_t ptp_canon_get_directory (PTPParams* params, PTPObjectHandles *handles, PTPObjectInfo **oinfos, uint32_t **flags);
2493
2565
/**