This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
imagesci\private\imbmpinfo>readWin3xInfoM-subfunction1
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
256
info.NumImportantColors = frea...
10 s0%
255
info.NumColorsUsed = fread(fid...
10 s0%
254
info.VertResolution = fread(fi...
10 s0%
253
info.HorzResolution = fread(fi...
10 s0%
252
info.BitmapSize = fread(fid, 1...
10 s0%
Other lines & overhead  0 s0%
Totals  0.000 s0% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
ima...rivate\imbmpinfo>decodeCompressionM-subfunction10 s0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.000 s0% 
M-Lint results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in file33
Non-code lines (comments, blank lines)14
Code lines (lines that can run)19
Code lines that did run14
Code lines that did not run5
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.