CHDK_DE Vorschauversion  Trunk Rev. 6014
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
remotecap.h-Dateireferenz
+ Dieser Graph zeigt, welche Datei direkt oder indirekt diese Datei enthält:

gehe zum Quellcode dieser Datei

Datenstrukturen

struct  ptp_data_chunk
 

Funktionen

int remotecap_get_target_support (void)
 
int remotecap_set_target (int type, int lstart, int lcount)
 
int remotecap_get_target (void)
 
void remotecap_set_timeout (int timeout)
 
int remotecap_using_dng_module ()
 

Dokumentation der Funktionen

int remotecap_get_target ( void  )

Definiert in Zeile 50 der Datei remotecap.c.

50  {
51  return remote_file_target;
52 }
int remotecap_get_target_support ( void  )

Definiert in Zeile 39 der Datei remotecap.c.

39  {
41 #ifdef CAM_HAS_FILEWRITETASK_HOOK
42  ret |= PTP_CHDK_CAPTURE_JPG;
43 #ifdef CAM_HAS_CANON_RAW
44  ret |= PTP_CHDK_CAPTURE_CRAW;
45 #endif
46 #endif
47  return ret;
48 }
int remotecap_set_target ( int  type,
int  lstart,
int  lcount 
)

Definiert in Zeile 96 der Datei remotecap.c.

97 {
98  // fail if invalid / unsupported type requested,
99  // or current mode cannot support requested types
100  if ((type & ~remotecap_get_target_support())
102  || ((type & PTP_CHDK_CAPTURE_RAW) && !is_raw_possible())
103 #ifdef CAM_HAS_CANON_RAW
106 #endif
108  // other drive modes do not work on these cams currently
109  || (shooting_get_drive_mode() != 0)
110 #endif
111  ) {
112  remotecap_reset();
113  return 0;
114  }
115  // clear requested
116  if(type==0) {
117  remotecap_reset();
118  return 1;
119  }
120  // invalid range, return error
121  if(lstart<0 || lstart>CAM_RAW_ROWS-1 || lcount<0 || lcount+lstart>CAM_RAW_ROWS) {
122  remotecap_reset();
123  return 0;
124  }
125  // default lcount = to end of buffer
126  if(lcount == 0) {
127  lcount = CAM_RAW_ROWS - lstart;
128  }
129  remote_file_target=type;
130  startline=lstart;
131  linecount=lcount;
132  return 1;
133 }
void remotecap_set_timeout ( int  timeout)

Definiert in Zeile 57 der Datei remotecap.c.

58 {
59  if(timeout <= 0) {
61  } else {
62  hook_wait_max = timeout/10;
63  }
64 }
int remotecap_using_dng_module ( )

Definiert in Zeile 140 der Datei remotecap.c.

140  {
142 }