This is a static copy of a profile report

Home

imagesci\private\imbmpinfo>readWin3xInfo (1 call, 0.016 sec)
Generated 15-Mar-2007 12:01:58 using real time.
M-subfunction in file C:\Program Files\MATLAB71\toolbox\matlab\imagesci\private\imbmpinfo.m
[Copy to new window for comparing multiple runs]

Parents (calling functions)

Function NameFunction TypeCalls
imagesci\private\imbmpinfo>readBMPInfoM-subfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
464
[info, msg] = readVersion3xCol...
10.016 s100.0%
448
info.FormatVersion = 'Version ...
10.000 s0.0%
449
end
10.000 s0.0%
447
else
10.000 s0.0%
465
end
10 s0%
Other lines & overhead  0 s0%
Totals  0.016 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
ima...te\imbmpinfo>readVersion3xColormapM-subfunction10.016 s100.0%
ima...rivate\imbmpinfo>readBMPFileHeaderM-subfunction10 s0%
ima...te\imbmpinfo>readWin3xBitmapHeaderM-subfunction10 s0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.016 s100% 
M-Lint results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in file35
Non-code lines (comments, blank lines)14
Code lines (lines that can run)21
Code lines that did run13
Code lines that did not run8
Coverage (did run/can run)61.90 %
Function listing
   time   calls  line
434 function [info, msg] = readWin3xInfo(fid, info)
435 %READWIN3XINFO Read the metadata from a Win 3.x/NT BMP.
436
1 437 info.FormatVersion = 'Version 3';
1 438 info = readBMPFileHeader(fid, info);
1 439 [info, msg] = readWin3xBitmapHeader(fid, info);
440
1 441 if (~isempty(msg))
442 return
443 end
444
1 445 if (isequal(info.CompressionType, 'bitfields'))
446 info.FormatVersion = 'Version 3 (Microsoft Windows NT)';
< 0.01 1 447 else
< 0.01 1 448 info.FormatVersion = 'Version 3 (Microsoft Windows 3.x)';
< 0.01 1 449 end
450
1 451 if ((isequal(info.CompressionType, 'Version 3 (Microsoft Windows NT)')) && ...
452 ((info.BitDepth == 16) || (info.BitDepth == 32)) && ...
453 (~isequal(info.CompressionType,'bitfields')))
454
455 msg= 'BMP Version 3 (Microsoft Windows NT) file appears to be corrupt';
456 return;
457
458 end
459
1 460 if (isequal(info.CompressionType, 'bitfields'))
461 info = readVersion3xMasks(fid, info);
462 msg = '';
1 463 else
0.02 1 464 [info, msg] = readVersion3xColormap(fid, info);
1 465 end
466
467
468

Other subfunctions in this file are not included in this listing.