-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEDSDKTypes.h
1349 lines (1150 loc) · 50.7 KB
/
EDSDKTypes.h
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/******************************************************************************
* *
* PROJECT : EOS Digital Software Development Kit EDSDK *
* NAME : EdsTypes.h *
* *
* Description: COMMON DEFINITION FOR EDSDK *
* *
*******************************************************************************
* *
* Written and developed by Canon Inc. *
* Copyright Canon Inc. 2006-2015 All Rights Reserved *
* *
******************************************************************************/
#ifndef _EDS_TYPES_H_
#define _EDS_TYPES_H_
#ifdef __MACOS__
#if PRAGMA_STRUCT_ALIGN
#pragma options align=mac68k
#endif
#if defined __LP64__/*__x86_64__*/
#define MAC64
#endif
#else
#pragma pack (push, 8)
#endif
#ifdef __MACOS__
#define EDSSTDCALL
#define EDSEXPORT
#define EDSIMPORT
#else
#define EDSSTDCALL __stdcall
#define EDSEXPORT __declspec(dllexport)
#define EDSIMPORT __declspec(dllimport)
#endif
/*----------------------------------------------------------------------------*/
/******************************************************************************
Definition of Constants
******************************************************************************/
#define EDS_MAX_NAME 256
#define EDS_TRANSFER_BLOCK_SIZE 512
/******************************************************************************
Definition of Data Types
******************************************************************************/
/*-----------------------------------------------------------------------------
Callback Types
-----------------------------------------------------------------------------*/
#define EDSCALLBACK EDSSTDCALL
/*-----------------------------------------------------------------------------
Basic Types
-----------------------------------------------------------------------------*/
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void *)0)
#endif
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
typedef void EdsVoid;
typedef int EdsBool;
typedef char EdsChar;
#ifdef __MACOS__
typedef SInt8 EdsInt8;
typedef UInt8 EdsUInt8;
typedef SInt16 EdsInt16;
typedef UInt16 EdsUInt16;
typedef SInt32 EdsInt32;
typedef UInt32 EdsUInt32;
#ifdef __cplusplus
typedef long long EdsInt64;
typedef unsigned long long EdsUInt64;
#else
typedef SInt64 EdsInt64;
typedef UInt64 EdsUInt64;
#endif
#else
typedef char EdsInt8;
typedef unsigned char EdsUInt8;
typedef short EdsInt16;
typedef unsigned short EdsUInt16;
typedef long EdsInt32;
typedef unsigned long EdsUInt32;
typedef __int64 EdsInt64;
typedef unsigned __int64 EdsUInt64;
#endif
typedef float EdsFloat;
typedef double EdsDouble;
/*-----------------------------------------------------------------------------
Error Types
-----------------------------------------------------------------------------*/
typedef EdsUInt32 EdsError;
/*-----------------------------------------------------------------------------
Reference Types
-----------------------------------------------------------------------------*/
typedef struct __EdsObject* EdsBaseRef;
typedef EdsBaseRef EdsCameraListRef;
typedef EdsBaseRef EdsCameraRef;
typedef EdsBaseRef EdsVolumeRef;
typedef EdsBaseRef EdsDirectoryItemRef;
typedef EdsBaseRef EdsStreamRef;
typedef EdsStreamRef EdsImageRef;
typedef EdsBaseRef EdsEvfImageRef ;
/*-----------------------------------------------------------------------------
Data Types
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsDataType_Unknown = 0,
kEdsDataType_Bool = 1,
kEdsDataType_String = 2,
kEdsDataType_Int8 = 3,
kEdsDataType_UInt8 = 6,
kEdsDataType_Int16 = 4,
kEdsDataType_UInt16 = 7,
kEdsDataType_Int32 = 8,
kEdsDataType_UInt32 = 9,
kEdsDataType_Int64 = 10,
kEdsDataType_UInt64 = 11,
kEdsDataType_Float = 12,
kEdsDataType_Double = 13,
kEdsDataType_ByteBlock = 14,
kEdsDataType_Rational = 20,
kEdsDataType_Point = 21,
kEdsDataType_Rect = 22,
kEdsDataType_Time = 23,
kEdsDataType_Bool_Array = 30,
kEdsDataType_Int8_Array = 31,
kEdsDataType_Int16_Array = 32,
kEdsDataType_Int32_Array = 33,
kEdsDataType_UInt8_Array = 34,
kEdsDataType_UInt16_Array = 35,
kEdsDataType_UInt32_Array = 36,
kEdsDataType_Rational_Array = 37,
kEdsDataType_FocusInfo = 101,
kEdsDataType_PictureStyleDesc,
} EdsDataType;
/*-----------------------------------------------------------------------------
Property IDs
-----------------------------------------------------------------------------*/
typedef EdsUInt32 EdsPropertyID;
/*----------------------------------
Camera Setting Properties
----------------------------------*/
#define kEdsPropID_Unknown 0x0000ffff
#define kEdsPropID_ProductName 0x00000002
#define kEdsPropID_OwnerName 0x00000004
#define kEdsPropID_MakerName 0x00000005
#define kEdsPropID_DateTime 0x00000006
#define kEdsPropID_FirmwareVersion 0x00000007
#define kEdsPropID_BatteryLevel 0x00000008
#define kEdsPropID_CFn 0x00000009
#define kEdsPropID_SaveTo 0x0000000b
#define kEdsPropID_CurrentStorage 0x0000000c
#define kEdsPropID_CurrentFolder 0x0000000d
#define kEdsPropID_MyMenu 0x0000000e
#define kEdsPropID_BatteryQuality 0x00000010
#define kEdsPropID_BodyIDEx 0x00000015
#define kEdsPropID_HDDirectoryStructure 0x00000020
/*----------------------------------
Image Properties
----------------------------------*/
#define kEdsPropID_ImageQuality 0x00000100
#define kEdsPropID_JpegQuality 0x00000101
#define kEdsPropID_Orientation 0x00000102
#define kEdsPropID_ICCProfile 0x00000103
#define kEdsPropID_FocusInfo 0x00000104
#define kEdsPropID_DigitalExposure 0x00000105
#define kEdsPropID_WhiteBalance 0x00000106
#define kEdsPropID_ColorTemperature 0x00000107
#define kEdsPropID_WhiteBalanceShift 0x00000108
#define kEdsPropID_Contrast 0x00000109
#define kEdsPropID_ColorSaturation 0x0000010a
#define kEdsPropID_ColorTone 0x0000010b
#define kEdsPropID_Sharpness 0x0000010c
#define kEdsPropID_ColorSpace 0x0000010d
#define kEdsPropID_ToneCurve 0x0000010e
#define kEdsPropID_PhotoEffect 0x0000010f
#define kEdsPropID_FilterEffect 0x00000110
#define kEdsPropID_ToningEffect 0x00000111
#define kEdsPropID_ParameterSet 0x00000112
#define kEdsPropID_ColorMatrix 0x00000113
#define kEdsPropID_PictureStyle 0x00000114
#define kEdsPropID_PictureStyleDesc 0x00000115
#define kEdsPropID_PictureStyleCaption 0x00000200
/*----------------------------------
Image Processing Properties
----------------------------------*/
#define kEdsPropID_Linear 0x00000300
#define kEdsPropID_ClickWBPoint 0x00000301
#define kEdsPropID_WBCoeffs 0x00000302
/*----------------------------------
Image GPS Properties
----------------------------------*/
#define kEdsPropID_GPSVersionID 0x00000800
#define kEdsPropID_GPSLatitudeRef 0x00000801
#define kEdsPropID_GPSLatitude 0x00000802
#define kEdsPropID_GPSLongitudeRef 0x00000803
#define kEdsPropID_GPSLongitude 0x00000804
#define kEdsPropID_GPSAltitudeRef 0x00000805
#define kEdsPropID_GPSAltitude 0x00000806
#define kEdsPropID_GPSTimeStamp 0x00000807
#define kEdsPropID_GPSSatellites 0x00000808
#define kEdsPropID_GPSStatus 0x00000809
#define kEdsPropID_GPSMapDatum 0x00000812
#define kEdsPropID_GPSDateStamp 0x0000081D
/*----------------------------------
Property Mask
----------------------------------*/
#define kEdsPropID_AtCapture_Flag 0x80000000
/*----------------------------------
Capture Properties
----------------------------------*/
#define kEdsPropID_AEMode 0x00000400
#define kEdsPropID_DriveMode 0x00000401
#define kEdsPropID_ISOSpeed 0x00000402
#define kEdsPropID_MeteringMode 0x00000403
#define kEdsPropID_AFMode 0x00000404
#define kEdsPropID_Av 0x00000405
#define kEdsPropID_Tv 0x00000406
#define kEdsPropID_ExposureCompensation 0x00000407
#define kEdsPropID_FlashCompensation 0x00000408
#define kEdsPropID_FocalLength 0x00000409
#define kEdsPropID_AvailableShots 0x0000040a
#define kEdsPropID_Bracket 0x0000040b
#define kEdsPropID_WhiteBalanceBracket 0x0000040c
#define kEdsPropID_LensName 0x0000040d
#define kEdsPropID_AEBracket 0x0000040e
#define kEdsPropID_FEBracket 0x0000040f
#define kEdsPropID_ISOBracket 0x00000410
#define kEdsPropID_NoiseReduction 0x00000411
#define kEdsPropID_FlashOn 0x00000412
#define kEdsPropID_RedEye 0x00000413
#define kEdsPropID_FlashMode 0x00000414
#define kEdsPropID_LensStatus 0x00000416
#define kEdsPropID_Artist 0x00000418
#define kEdsPropID_Copyright 0x00000419
#define kEdsPropID_DepthOfField 0x0000041b
#define kEdsPropID_EFCompensation 0x0000041e
#define kEdsPropID_AEModeSelect 0x00000436
/*----------------------------------
EVF Properties
----------------------------------*/
#define kEdsPropID_Evf_OutputDevice 0x00000500
#define kEdsPropID_Evf_Mode 0x00000501
#define kEdsPropID_Evf_WhiteBalance 0x00000502
#define kEdsPropID_Evf_ColorTemperature 0x00000503
#define kEdsPropID_Evf_DepthOfFieldPreview 0x00000504
// EVF IMAGE DATA Properties
#define kEdsPropID_Evf_Zoom 0x00000507
#define kEdsPropID_Evf_ZoomPosition 0x00000508
#define kEdsPropID_Evf_FocusAid 0x00000509
#define kEdsPropID_Evf_Histogram 0x0000050A
#define kEdsPropID_Evf_ImagePosition 0x0000050B
#define kEdsPropID_Evf_HistogramStatus 0x0000050C
#define kEdsPropID_Evf_AFMode 0x0000050E
#define kEdsPropID_Record 0x00000510
#define kEdsPropID_Evf_HistogramY 0x00000515
#define kEdsPropID_Evf_HistogramR 0x00000516
#define kEdsPropID_Evf_HistogramG 0x00000517
#define kEdsPropID_Evf_HistogramB 0x00000518
#define kEdsPropID_Evf_CoordinateSystem 0x00000540
#define kEdsPropID_Evf_ZoomRect 0x00000541
#define kEdsPropID_Evf_ImageClipRect 0x00000545
/*-----------------------------------------------------------------------------
Camera Commands
-----------------------------------------------------------------------------*/
typedef EdsUInt32 EdsCameraCommand;
/*----------------------------------
Send Commands
----------------------------------*/
#define kEdsCameraCommand_TakePicture 0x00000000
#define kEdsCameraCommand_ExtendShutDownTimer 0x00000001
#define kEdsCameraCommand_BulbStart 0x00000002
#define kEdsCameraCommand_BulbEnd 0x00000003
#define kEdsCameraCommand_DoEvfAf 0x00000102
#define kEdsCameraCommand_DriveLensEvf 0x00000103
#define kEdsCameraCommand_DoClickWBEvf 0x00000104
#define kEdsCameraCommand_PressShutterButton 0x00000004
typedef enum
{
kEdsCameraCommand_EvfAf_OFF = 0,
kEdsCameraCommand_EvfAf_ON = 1,
} EdsEvfAf ;
typedef enum
{
kEdsCameraCommand_ShutterButton_OFF = 0x00000000,
kEdsCameraCommand_ShutterButton_Halfway = 0x00000001,
kEdsCameraCommand_ShutterButton_Completely = 0x00000003,
kEdsCameraCommand_ShutterButton_Halfway_NonAF = 0x00010001,
kEdsCameraCommand_ShutterButton_Completely_NonAF = 0x00010003,
} EdsShutterButton ;
typedef EdsUInt32 EdsCameraStatusCommand;
/*----------------------------------
Camera Status Commands
----------------------------------*/
#define kEdsCameraStatusCommand_UILock 0x00000000
#define kEdsCameraStatusCommand_UIUnLock 0x00000001
#define kEdsCameraStatusCommand_EnterDirectTransfer 0x00000002
#define kEdsCameraStatusCommand_ExitDirectTransfer 0x00000003
/*-----------------------------------------------------------------------------
Camera Events
-----------------------------------------------------------------------------*/
typedef EdsUInt32 EdsPropertyEvent;
/*----------------------------------
Property Event
----------------------------------*/
/* Notifies all property events. */
#define kEdsPropertyEvent_All 0x00000100
/* Notifies that a camera property value has been changed.
The changed property can be retrieved from event data.
The changed value can be retrieved by means of EdsGetPropertyData.
In the case of type 1 protocol standard cameras,
notification of changed properties can only be issued for custom functions (CFn).
If the property type is 0x0000FFFF, the changed property cannot be identified.
Thus, retrieve all required properties repeatedly. */
#define kEdsPropertyEvent_PropertyChanged 0x00000101
/* Notifies of changes in the list of camera properties with configurable values.
The list of configurable values for property IDs indicated in event data
can be retrieved by means of EdsGetPropertyDesc.
For type 1 protocol standard cameras, the property ID is identified as "Unknown"
during notification.
Thus, you must retrieve a list of configurable values for all properties and
retrieve the property values repeatedly.
(For details on properties for which you can retrieve a list of configurable
properties,
see the description of EdsGetPropertyDesc). */
#define kEdsPropertyEvent_PropertyDescChanged 0x00000102
typedef EdsUInt32 EdsObjectEvent;
/*----------------------------------
Object Event
----------------------------------*/
/* Notifies all object events. */
#define kEdsObjectEvent_All 0x00000200
/* Notifies that the volume object (memory card) state (VolumeInfo)
has been changed.
Changed objects are indicated by event data.
The changed value can be retrieved by means of EdsGetVolumeInfo.
Notification of this event is not issued for type 1 protocol standard cameras. */
#define kEdsObjectEvent_VolumeInfoChanged 0x00000201
/* Notifies if the designated volume on a camera has been formatted.
If notification of this event is received, get sub-items of the designated
volume again as needed.
Changed volume objects can be retrieved from event data.
Objects cannot be identified on cameras earlier than the D30
if files are added or deleted.
Thus, these events are subject to notification. */
#define kEdsObjectEvent_VolumeUpdateItems 0x00000202
/* Notifies if many images are deleted in a designated folder on a camera.
If notification of this event is received, get sub-items of the designated
folder again as needed.
Changed folders (specifically, directory item objects) can be retrieved
from event data. */
#define kEdsObjectEvent_FolderUpdateItems 0x00000203
/* Notifies of the creation of objects such as new folders or files
on a camera compact flash card or the like.
This event is generated if the camera has been set to store captured
images simultaneously on the camera and a computer,
for example, but not if the camera is set to store images
on the computer alone.
Newly created objects are indicated by event data.
Because objects are not indicated for type 1 protocol standard cameras,
(that is, objects are indicated as NULL),
you must again retrieve child objects under the camera object to
identify the new objects. */
#define kEdsObjectEvent_DirItemCreated 0x00000204
/* Notifies of the deletion of objects such as folders or files on a camera
compact flash card or the like.
Deleted objects are indicated in event data.
Because objects are not indicated for type 1 protocol standard cameras,
you must again retrieve child objects under the camera object to
identify deleted objects. */
#define kEdsObjectEvent_DirItemRemoved 0x00000205
/* Notifies that information of DirItem objects has been changed.
Changed objects are indicated by event data.
The changed value can be retrieved by means of EdsGetDirectoryItemInfo.
Notification of this event is not issued for type 1 protocol standard cameras. */
#define kEdsObjectEvent_DirItemInfoChanged 0x00000206
/* Notifies that header information has been updated, as for rotation information
of image files on the camera.
If this event is received, get the file header information again, as needed.
This function is for type 2 protocol standard cameras only. */
#define kEdsObjectEvent_DirItemContentChanged 0x00000207
/* Notifies that there are objects on a camera to be transferred to a computer.
This event is generated after remote release from a computer or local release
from a camera.
If this event is received, objects indicated in the event data must be downloaded.
Furthermore, if the application does not require the objects, instead
of downloading them,
execute EdsDownloadCancel and release resources held by the camera.
The order of downloading from type 1 protocol standard cameras must be the order
in which the events are received. */
#define kEdsObjectEvent_DirItemRequestTransfer 0x00000208
/* Notifies if the camera's direct transfer button is pressed.
If this event is received, objects indicated in the event data must be downloaded.
Furthermore, if the application does not require the objects, instead of
downloading them,
execute EdsDownloadCancel and release resources held by the camera.
Notification of this event is not issued for type 1 protocol standard cameras. */
#define kEdsObjectEvent_DirItemRequestTransferDT 0x00000209
/* Notifies of requests from a camera to cancel object transfer
if the button to cancel direct transfer is pressed on the camera.
If the parameter is 0, it means that cancellation of transfer is requested for
objects still not downloaded,
with these objects indicated by kEdsObjectEvent_DirItemRequestTransferDT.
Notification of this event is not issued for type 1 protocol standard cameras. */
#define kEdsObjectEvent_DirItemCancelTransferDT 0x0000020a
#define kEdsObjectEvent_VolumeAdded 0x0000020c
#define kEdsObjectEvent_VolumeRemoved 0x0000020d
typedef EdsUInt32 EdsStateEvent;
/*----------------------------------
State Event
----------------------------------*/
/* Notifies all state events. */
#define kEdsStateEvent_All 0x00000300
/* Indicates that a camera is no longer connected to a computer,
whether it was disconnected by unplugging a cord, opening
the compact flash compartment,
turning the camera off, auto shut-off, or by other means. */
#define kEdsStateEvent_Shutdown 0x00000301
/* Notifies of whether or not there are objects waiting to
be transferred to a host computer.
This is useful when ensuring all shot images have been transferred
when the application is closed.
Notification of this event is not issued for type 1 protocol
standard cameras. */
#define kEdsStateEvent_JobStatusChanged 0x00000302
/* Notifies that the camera will shut down after a specific period.
Generated only if auto shut-off is set.
Exactly when notification is issued (that is, the number of
seconds until shutdown) varies depending on the camera model.
To continue operation without having the camera shut down,
use EdsSendCommand to extend the auto shut-off timer.
The time in seconds until the camera shuts down is returned
as the initial value. */
#define kEdsStateEvent_WillSoonShutDown 0x00000303
/* As the counterpart event to kEdsStateEvent_WillSoonShutDown,
this event notifies of updates to the number of seconds until
a camera shuts down.
After the update, the period until shutdown is model-dependent. */
#define kEdsStateEvent_ShutDownTimerUpdate 0x00000304
/* Notifies that a requested release has failed, due to focus
failure or similar factors. */
#define kEdsStateEvent_CaptureError 0x00000305
/* Notifies of internal SDK errors.
If this error event is received, the issuing device will probably
not be able to continue working properly,
so cancel the remote connection. */
#define kEdsStateEvent_InternalError 0x00000306
#define kEdsStateEvent_AfResult 0x00000309
#define kEdsStateEvent_BulbExposureTime 0x00000310
/*-----------------------------------------------------------------------------
Drive Lens
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsEvfDriveLens_Near1 = 0x00000001,
kEdsEvfDriveLens_Near2 = 0x00000002,
kEdsEvfDriveLens_Near3 = 0x00000003,
kEdsEvfDriveLens_Far1 = 0x00008001,
kEdsEvfDriveLens_Far2 = 0x00008002,
kEdsEvfDriveLens_Far3 = 0x00008003,
} EdsEvfDriveLens ;
/*-----------------------------------------------------------------------------
Depth of Field Preview
-----------------------------------------------------------------------------*/
typedef enum {
kEdsEvfDepthOfFieldPreview_OFF = 0x00000000,
kEdsEvfDepthOfFieldPreview_ON = 0x00000001,
} EdsEvfDepthOfFieldPreview ;
/*-----------------------------------------------------------------------------
Stream Seek Origins
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsSeek_Cur = 0,
kEdsSeek_Begin ,
kEdsSeek_End ,
} EdsSeekOrigin;
/*-----------------------------------------------------------------------------
File and Propaties Access
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsAccess_Read = 0,
kEdsAccess_Write ,
kEdsAccess_ReadWrite ,
kEdsAccess_Error = 0xFFFFFFFF,
} EdsAccess;
/*-----------------------------------------------------------------------------
File Create Disposition
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsFileCreateDisposition_CreateNew = 0,
kEdsFileCreateDisposition_CreateAlways ,
kEdsFileCreateDisposition_OpenExisting ,
kEdsFileCreateDisposition_OpenAlways ,
kEdsFileCreateDisposition_TruncateExsisting ,
} EdsFileCreateDisposition;
/*-----------------------------------------------------------------------------
Image Types
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsImageType_Unknown = 0x00000000,
kEdsImageType_Jpeg = 0x00000001,
kEdsImageType_CRW = 0x00000002,
kEdsImageType_RAW = 0x00000004,
kEdsImageType_CR2 = 0x00000006,
} EdsImageType;
/*-----------------------------------------------------------------------------
Image Size
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsImageSize_Large = 0,
kEdsImageSize_Middle = 1,
kEdsImageSize_Small = 2,
kEdsImageSize_Middle1 = 5,
kEdsImageSize_Middle2 = 6,
kEdsImageSize_Small1 = 14,
kEdsImageSize_Small2 = 15,
kEdsImageSize_Small3 = 16,
kEdsImageSize_Unknown = 0xffffffff,
} EdsImageSize;
/*-----------------------------------------------------------------------------
Image Compress Quality
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsCompressQuality_Normal = 2,
kEdsCompressQuality_Fine = 3,
kEdsCompressQuality_Lossless = 4,
kEdsCompressQuality_SuperFine = 5,
kEdsCompressQuality_Unknown = 0xffffffff,
} EdsCompressQuality;
/*-----------------------------------------------------------------------------
Image Quality
-----------------------------------------------------------------------------*/
typedef enum
{
/* Jpeg Only */
EdsImageQuality_LJ = 0x0010ff0f, /* Jpeg Large */
EdsImageQuality_M1J = 0x0510ff0f, /* Jpeg Middle1 */
EdsImageQuality_M2J = 0x0610ff0f, /* Jpeg Middle2 */
EdsImageQuality_SJ = 0x0210ff0f, /* Jpeg Small */
EdsImageQuality_LJF = 0x0013ff0f, /* Jpeg Large Fine */
EdsImageQuality_LJN = 0x0012ff0f, /* Jpeg Large Normal */
EdsImageQuality_MJF = 0x0113ff0f, /* Jpeg Middle Fine */
EdsImageQuality_MJN = 0x0112ff0f, /* Jpeg Middle Normal */
EdsImageQuality_SJF = 0x0213ff0f, /* Jpeg Small Fine */
EdsImageQuality_SJN = 0x0212ff0f, /* Jpeg Small Normal */
EdsImageQuality_S1JF = 0x0E13ff0f, /* Jpeg Small1 Fine */
EdsImageQuality_S1JN = 0x0E12ff0f, /* Jpeg Small1 Normal */
EdsImageQuality_S2JF = 0x0F13ff0f, /* Jpeg Small2 */
EdsImageQuality_S3JF = 0x1013ff0f, /* Jpeg Small3 */
/* RAW + Jpeg */
EdsImageQuality_LR = 0x0064ff0f, /* RAW */
EdsImageQuality_LRLJF = 0x00640013, /* RAW + Jpeg Large Fine */
EdsImageQuality_LRLJN = 0x00640012, /* RAW + Jpeg Large Normal */
EdsImageQuality_LRMJF = 0x00640113, /* RAW + Jpeg Middle Fine */
EdsImageQuality_LRMJN = 0x00640112, /* RAW + Jpeg Middle Normal */
EdsImageQuality_LRSJF = 0x00640213, /* RAW + Jpeg Small Fine */
EdsImageQuality_LRSJN = 0x00640212, /* RAW + Jpeg Small Normal */
EdsImageQuality_LRS1JF = 0x00640E13, /* RAW + Jpeg Small1 Fine */
EdsImageQuality_LRS1JN = 0x00640E12, /* RAW + Jpeg Small1 Normal */
EdsImageQuality_LRS2JF = 0x00640F13, /* RAW + Jpeg Small2 */
EdsImageQuality_LRS3JF = 0x00641013, /* RAW + Jpeg Small3 */
EdsImageQuality_LRLJ = 0x00640010, /* RAW + Jpeg Large */
EdsImageQuality_LRM1J = 0x00640510, /* RAW + Jpeg Middle1 */
EdsImageQuality_LRM2J = 0x00640610, /* RAW + Jpeg Middle2 */
EdsImageQuality_LRSJ = 0x00640210, /* RAW + Jpeg Small */
/* MRAW(SRAW1) + Jpeg */
EdsImageQuality_MR = 0x0164ff0f, /* MRAW(SRAW1) */
EdsImageQuality_MRLJF = 0x01640013, /* MRAW(SRAW1) + Jpeg Large Fine */
EdsImageQuality_MRLJN = 0x01640012, /* MRAW(SRAW1) + Jpeg Large Normal */
EdsImageQuality_MRMJF = 0x01640113, /* MRAW(SRAW1) + Jpeg Middle Fine */
EdsImageQuality_MRMJN = 0x01640112, /* MRAW(SRAW1) + Jpeg Middle Normal */
EdsImageQuality_MRSJF = 0x01640213, /* MRAW(SRAW1) + Jpeg Small Fine */
EdsImageQuality_MRSJN = 0x01640212, /* MRAW(SRAW1) + Jpeg Small Normal */
EdsImageQuality_MRS1JF = 0x01640E13, /* MRAW(SRAW1) + Jpeg Small1 Fine */
EdsImageQuality_MRS1JN = 0x01640E12, /* MRAW(SRAW1) + Jpeg Small1 Normal */
EdsImageQuality_MRS2JF = 0x01640F13, /* MRAW(SRAW1) + Jpeg Small2 */
EdsImageQuality_MRS3JF = 0x01641013, /* MRAW(SRAW1) + Jpeg Small3 */
EdsImageQuality_MRLJ = 0x01640010, /* MRAW(SRAW1) + Jpeg Large */
EdsImageQuality_MRM1J = 0x01640510, /* MRAW(SRAW1) + Jpeg Middle1 */
EdsImageQuality_MRM2J = 0x01640610, /* MRAW(SRAW1) + Jpeg Middle2 */
EdsImageQuality_MRSJ = 0x01640210, /* MRAW(SRAW1) + Jpeg Small */
/* SRAW(SRAW2) + Jpeg */
EdsImageQuality_SR = 0x0264ff0f, /* SRAW(SRAW2) */
EdsImageQuality_SRLJF = 0x02640013, /* SRAW(SRAW2) + Jpeg Large Fine */
EdsImageQuality_SRLJN = 0x02640012, /* SRAW(SRAW2) + Jpeg Large Normal */
EdsImageQuality_SRMJF = 0x02640113, /* SRAW(SRAW2) + Jpeg Middle Fine */
EdsImageQuality_SRMJN = 0x02640112, /* SRAW(SRAW2) + Jpeg Middle Normal */
EdsImageQuality_SRSJF = 0x02640213, /* SRAW(SRAW2) + Jpeg Small Fine */
EdsImageQuality_SRSJN = 0x02640212, /* SRAW(SRAW2) + Jpeg Small Normal */
EdsImageQuality_SRS1JF = 0x02640E13, /* SRAW(SRAW2) + Jpeg Small1 Fine */
EdsImageQuality_SRS1JN = 0x02640E12, /* SRAW(SRAW2) + Jpeg Small1 Normal */
EdsImageQuality_SRS2JF = 0x02640F13, /* SRAW(SRAW2) + Jpeg Small2 */
EdsImageQuality_SRS3JF = 0x02641013, /* SRAW(SRAW2) + Jpeg Small3 */
EdsImageQuality_SRLJ = 0x02640010, /* SRAW(SRAW2) + Jpeg Large */
EdsImageQuality_SRM1J = 0x02640510, /* SRAW(SRAW2) + Jpeg Middle1 */
EdsImageQuality_SRM2J = 0x02640610, /* SRAW(SRAW2) + Jpeg Middle2 */
EdsImageQuality_SRSJ = 0x02640210, /* SRAW(SRAW2) + Jpeg Small */
EdsImageQuality_Unknown = 0xffffffff,
}EdsImageQuality;
typedef enum
{
kEdsImageQualityForLegacy_LJ = 0x001f000f, /* Jpeg Large */
kEdsImageQualityForLegacy_M1J = 0x051f000f, /* Jpeg Middle1 */
kEdsImageQualityForLegacy_M2J = 0x061f000f, /* Jpeg Middle2 */
kEdsImageQualityForLegacy_SJ = 0x021f000f, /* Jpeg Small */
kEdsImageQualityForLegacy_LJF = 0x00130000, /* Jpeg Large Fine */
kEdsImageQualityForLegacy_LJN = 0x00120000, /* Jpeg Large Normal */
kEdsImageQualityForLegacy_MJF = 0x01130000, /* Jpeg Middle Fine */
kEdsImageQualityForLegacy_MJN = 0x01120000, /* Jpeg Middle Normal */
kEdsImageQualityForLegacy_SJF = 0x02130000, /* Jpeg Small Fine */
kEdsImageQualityForLegacy_SJN = 0x02120000, /* Jpeg Small Normal */
kEdsImageQualityForLegacy_LR = 0x00240000, /* RAW */
kEdsImageQualityForLegacy_LRLJF = 0x00240013, /* RAW + Jpeg Large Fine */
kEdsImageQualityForLegacy_LRLJN = 0x00240012, /* RAW + Jpeg Large Normal */
kEdsImageQualityForLegacy_LRMJF = 0x00240113, /* RAW + Jpeg Middle Fine */
kEdsImageQualityForLegacy_LRMJN = 0x00240112, /* RAW + Jpeg Middle Normal */
kEdsImageQualityForLegacy_LRSJF = 0x00240213, /* RAW + Jpeg Small Fine */
kEdsImageQualityForLegacy_LRSJN = 0x00240212, /* RAW + Jpeg Small Normal */
kEdsImageQualityForLegacy_LR2 = 0x002f000f, /* RAW */
kEdsImageQualityForLegacy_LR2LJ = 0x002f001f, /* RAW + Jpeg Large */
kEdsImageQualityForLegacy_LR2M1J = 0x002f051f, /* RAW + Jpeg Middle1 */
kEdsImageQualityForLegacy_LR2M2J = 0x002f061f, /* RAW + Jpeg Middle2 */
kEdsImageQualityForLegacy_LR2SJ = 0x002f021f, /* RAW + Jpeg Small */
kEdsImageQualityForLegacy_Unknown = 0xffffffff,
}EdsImageQualityForLegacy;
/*-----------------------------------------------------------------------------
Image Source
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsImageSrc_FullView = 0 ,
kEdsImageSrc_Thumbnail ,
kEdsImageSrc_Preview ,
kEdsImageSrc_RAWThumbnail ,
kEdsImageSrc_RAWFullView ,
} EdsImageSource;
/*-----------------------------------------------------------------------------
Target Image Types
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsTargetImageType_Unknown = 0x00000000,
kEdsTargetImageType_Jpeg = 0x00000001,
kEdsTargetImageType_TIFF = 0x00000007,
kEdsTargetImageType_TIFF16 = 0x00000008,
kEdsTargetImageType_RGB = 0x00000009,
kEdsTargetImageType_RGB16 = 0x0000000A,
kEdsTargetImageType_DIB = 0x0000000B
} EdsTargetImageType;
/*-----------------------------------------------------------------------------
Progress Option
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsProgressOption_NoReport = 0,
kEdsProgressOption_Done ,
kEdsProgressOption_Periodically ,
} EdsProgressOption;
/*-----------------------------------------------------------------------------
File attribute
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsFileAttribute_Normal = 0x00000000,
kEdsFileAttribute_ReadOnly = 0x00000001,
kEdsFileAttribute_Hidden = 0x00000002,
kEdsFileAttribute_System = 0x00000004,
kEdsFileAttribute_Archive = 0x00000020,
} EdsFileAttributes;
/*-----------------------------------------------------------------------------
Battery level
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsBatteryLevel2_Empty = 0,
kEdsBatteryLevel2_Low = 9,
kEdsBatteryLevel2_Half = 49,
kEdsBatteryLevel2_Normal = 80,
kEdsBatteryLevel2_Hi = 69,
kEdsBatteryLevel2_Quarter = 19,
kEdsBatteryLevel2_Error = 0,
kEdsBatteryLevel2_BCLevel = 0,
kEdsBatteryLevel2_AC = 0xFFFFFFFF,
} EdsBatteryLevel2;
/*-----------------------------------------------------------------------------
Save To
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsSaveTo_Camera = 1,
kEdsSaveTo_Host = 2,
kEdsSaveTo_Both = kEdsSaveTo_Camera | kEdsSaveTo_Host,
} EdsSaveTo;
/*-----------------------------------------------------------------------------
StorageType
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsStorageType_Non = 0,
kEdsStorageType_CF = 1,
kEdsStorageType_SD = 2,
kEdsStorageType_HD = 4,
} EdsStorageType;
/*-----------------------------------------------------------------------------
White Balance
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsWhiteBalance_Auto = 0,
kEdsWhiteBalance_Daylight = 1,
kEdsWhiteBalance_Cloudy = 2,
kEdsWhiteBalance_Tangsten = 3,
kEdsWhiteBalance_Fluorescent = 4,
kEdsWhiteBalance_Strobe = 5,
kEdsWhiteBalance_WhitePaper = 6,
kEdsWhiteBalance_Shade = 8,
kEdsWhiteBalance_ColorTemp = 9,
kEdsWhiteBalance_PCSet1 = 10,
kEdsWhiteBalance_PCSet2 = 11,
kEdsWhiteBalance_PCSet3 = 12,
kEdsWhiteBalance_WhitePaper2 = 15,
kEdsWhiteBalance_WhitePaper3 = 16,
kEdsWhiteBalance_WhitePaper4 = 18,
kEdsWhiteBalance_WhitePaper5 = 19,
kEdsWhiteBalance_PCSet4 = 20,
kEdsWhiteBalance_PCSet5 = 21,
kEdsWhiteBalance_Click = -1,
kEdsWhiteBalance_Pasted = -2,
} EdsWhiteBalance;
/*-----------------------------------------------------------------------------
Photo Effects
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsPhotoEffect_Off = 0,
kEdsPhotoEffect_Monochrome = 5,
} EdsPhotoEffect;
/*-----------------------------------------------------------------------------
Color Matrix
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsColorMatrix_Custom = 0,
kEdsColorMatrix_1 = 1,
kEdsColorMatrix_2 = 2,
kEdsColorMatrix_3 = 3,
kEdsColorMatrix_4 = 4,
kEdsColorMatrix_5 = 5,
kEdsColorMatrix_6 = 6,
kEdsColorMatrix_7 = 7,
} EdsColorMatrix;
/*-----------------------------------------------------------------------------
Filter Effects
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsFilterEffect_None = 0,
kEdsFilterEffect_Yellow = 1,
kEdsFilterEffect_Orange = 2,
kEdsFilterEffect_Red = 3,
kEdsFilterEffect_Green = 4,
} EdsFilterEffect;
/*-----------------------------------------------------------------------------
Toning Effects
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsTonigEffect_None = 0,
kEdsTonigEffect_Sepia = 1,
kEdsTonigEffect_Blue = 2,
kEdsTonigEffect_Purple = 3,
kEdsTonigEffect_Green = 4,
} EdsTonigEffect;
/*-----------------------------------------------------------------------------
Color Space
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsColorSpace_sRGB = 1,
kEdsColorSpace_AdobeRGB = 2,
kEdsColorSpace_Unknown = 0xffffffff,
} EdsColorSpace;
/*-----------------------------------------------------------------------------
PictureStyle
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsPictureStyle_Standard = 0x0081,
kEdsPictureStyle_Portrait = 0x0082,
kEdsPictureStyle_Landscape = 0x0083,
kEdsPictureStyle_Neutral = 0x0084,
kEdsPictureStyle_Faithful = 0x0085,
kEdsPictureStyle_Monochrome = 0x0086,
kEdsPictureStyle_Auto = 0x0087,
kEdsPictureStyle_FineDetail = 0x0088,
kEdsPictureStyle_User1 = 0x0021,
kEdsPictureStyle_User2 = 0x0022,
kEdsPictureStyle_User3 = 0x0023,
kEdsPictureStyle_PC1 = 0x0041,
kEdsPictureStyle_PC2 = 0x0042,
kEdsPictureStyle_PC3 = 0x0043,
} EdsPictureStyle;
/*-----------------------------------------------------------------------------
Transfer Option
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsTransferOption_ByDirectTransfer = 1,
kEdsTransferOption_ByRelease = 2,
kEdsTransferOption_ToDesktop = 0x00000100,
} EdsTransferOption;
/*-----------------------------------------------------------------------------
AE Mode
-----------------------------------------------------------------------------*/
typedef enum
{
kEdsAEMode_Program = 0 ,
kEdsAEMode_Tv = 1,
kEdsAEMode_Av = 2,
kEdsAEMode_Manual = 3,
kEdsAEMode_Bulb = 4,
kEdsAEMode_A_DEP = 5,
kEdsAEMode_DEP = 6,
kEdsAEMode_Custom = 7,
kEdsAEMode_Lock = 8,
kEdsAEMode_Green = 9,
kEdsAEMode_NightPortrait = 10,
kEdsAEMode_Sports = 11,
kEdsAEMode_Portrait = 12,
kEdsAEMode_Landscape = 13,
kEdsAEMode_Closeup = 14,
kEdsAEMode_FlashOff = 15,
kEdsAEMode_CreativeAuto = 19,
kEdsAEMode_Movie = 20,
kEdsAEMode_PhotoInMovie = 21,
kEdsAEMode_SceneIntelligentAuto = 22,
kEdsAEMode_SCN = 25,
kEdsAEMode_NightScenes = 23,
kEdsAEMode_BacklitScenes = 24,
kEdsAEMode_Children = 26,
kEdsAEMode_Food = 27,
kEdsAEMode_CandlelightPortraits = 28,