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

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychTests/HighPrecisionLuminanceOutputDriversImagingPipelineTest.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:
184
184
    error('"whichDriver" or "whichDriver.name" is not a driver name string!');
185
185
end
186
186
 
187
 
if isempty(driverNSlots) & ~isempty(driverBpc)
 
187
if isempty(driverNSlots) && ~isempty(driverBpc)
188
188
    driverNSlots = 2^driverBpc;
189
189
end
190
190
 
255
255
        uniqueValsA = length(unique(theInImage));
256
256
        uniqueValsB = length(unique(theIntImage));
257
257
 
258
 
        if (uniqueValsA~=uniqueValsB) | (uniqueValsA~=driverNSlots)
 
258
        if (uniqueValsA~=uniqueValsB) || (uniqueValsA~=driverNSlots)
259
259
            fprintf('Ouch! Number of unique test samples in different images is not the same! Bug in test code?!?\n');
260
260
            fprintf('Input to GPU (float) = %i, Input to CPU (uint32) = %i, Reference Expected (nr. slots) = %i\n', uniqueValsA, uniqueValsB, driverNSlots);
261
261
            error('Mismatch in unique values count! Likely a bug in this test code!');