This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
464 | [info, msg] = readVersion3xCol... | 1 | 0.016 s | 100.0% |  |
448 | info.FormatVersion = 'Version ... | 1 | 0.000 s | 0.0% |  |
449 | end | 1 | 0.000 s | 0.0% |  |
447 | else | 1 | 0.000 s | 0.0% |  |
465 | end | 1 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.016 s | 100% | |
Children (called functions)
M-Lint results
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 35 |
Non-code lines (comments, blank lines) | 14 |
Code lines (lines that can run) | 21 |
Code lines that did run | 13 |
Code lines that did not run | 8 |
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.