~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychVideoCapture/PsychCamSettings.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
 
159
159
if strcmp(cmd, 'IsKnownCamera')
160
160
     % Return 1, if this camera is known to the script.
161
 
     rc = IsFirei | IsA602f;
 
161
     rc = IsFirei || IsA602f;
162
162
     return;
163
163
end
164
164
 
320
320
     end
321
321
end
322
322
 
323
 
if (IsA602f || IsFirei) && (~isempty(strfind(cmd, 'Exposure')) | ~isempty(strfind(cmd, 'Shutter')))
 
323
if (IsA602f || IsFirei) && (~isempty(strfind(cmd, 'Exposure')) || ~isempty(strfind(cmd, 'Shutter')))
324
324
     % These settings are ignored on the Unibrain Fire-i and Basler A 602f.
325
325
     % They either control ExposureTime - for which we have a nice function -
326
326
     % or they control special settings...     
407
407
   end
408
408
 
409
409
   % Need to map returned rawval into meaningful value:
410
 
   if rawval >= 0 & rawval <= 128
 
410
   if rawval >= 0 && rawval <= 128
411
411
      rc = rawval * 0.000016; % Stepping of 16 microsecs.
412
412
   end
413
413
   
414
 
   if rawval > 128 & rawval <= 192
 
414
   if rawval > 128 && rawval <= 192
415
415
      rc = 128 * 0.000016 + (rawval-128) * 0.000032; % Stepping of 32 microsecs.
416
416
   end
417
417
 
418
 
   if rawval > 192 & rawval <= 384
 
418
   if rawval > 192 && rawval <= 384
419
419
      rc = 128 * 0.000016 + (192-128) * 0.000032 + (rawval-192) * 0.000064; % Stepping of 64 microsecs.
420
420
   end
421
421