This is a static copy of a profile reportHome
imagesci\private\imbmpinfo>readWin3xBitmapHeader (1 call, 0.000 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
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
256 | info.NumImportantColors = frea... | 1 | 0 s | 0% |  |
255 | info.NumColorsUsed = fread(fid... | 1 | 0 s | 0% |  |
254 | info.VertResolution = fread(fi... | 1 | 0 s | 0% |  |
253 | info.HorzResolution = fread(fi... | 1 | 0 s | 0% |  |
252 | info.BitmapSize = fread(fid, 1... | 1 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 0% | |
Children (called functions)
M-Lint results
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 33 |
Non-code lines (comments, blank lines) | 14 |
Code lines (lines that can run) | 19 |
Code lines that did run | 14 |
Code lines that did not run | 5 |
Coverage (did run/can run) | 73.68 % |
Function listing
time calls line
227 function [info, msg] = readWin3xBitmapHeader(fid, info)
228 %READWIN3XBITMAPHEADER Read the Win3xBitmapHeader structure.
229
230 % Version 3.x and later headers have UINT32-sized height and width.
1 231 info.BitmapHeaderSize = fread(fid, 1, 'uint32');
1 232 info.Width = fread(fid, 1, 'int32');
1 233 info.Height = fread(fid, 1, 'int32');
1 234 info.NumPlanes = fread(fid, 1, 'uint16');
1 235 info.BitDepth = fread(fid, 1, 'uint16');
236
1 237 if (isempty(info.Width) || isempty(info.Height))
238 msg = 'Truncated header';
239 return
240 end
241
242 % CompressionType will get decoded later after we really know
243 % what type of bitmap we have. It's a chicken and an egg problem.
1 244 info.CompressionType = fread(fid, 1, 'uint32');
1 245 [info.CompressionType, msg] = decodeCompression(info.CompressionType, ...
246 info.FormatVersion);
247
1 248 if (~isempty(msg))
249 return
250 end
251
1 252 info.BitmapSize = fread(fid, 1, 'uint32');
1 253 info.HorzResolution = fread(fid, 1, 'int32');
1 254 info.VertResolution = fread(fid, 1, 'int32');
1 255 info.NumColorsUsed = fread(fid, 1, 'uint32');
1 256 info.NumImportantColors = fread(fid, 1, 'uint32');
257
258
259
Other subfunctions in this file are not included in this listing.