<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am new to GDAL and trying to read and
display Mr. SID files. I am finding the performance is horrific (2
minutes to read a 7Mb sid image).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am using RasterIO (see snippet of code
below). Setting GDAL_ONE_BIG_READ has no effect. What am I
missing? Is there some code somewhere which shows how to read Mr.SID
into a raster of RGB triples? Am I better off to user the Mr. SID API
directly instead of GDAL?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Craig Speirs</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>//////////////////////////////////////////////////////////////</FONT></DIV>
<DIV><FONT face=Arial size=2>.......................</FONT></DIV>
<DIV><FONT face=Arial size=2> for (int
iBand=1,nBandsRead=0;iBand<=nBands; iBand
++)<BR> {<BR> iColorOffset =
0;<BR> iColorInterp =
poDataset->GetRasterBand(iBand)->GetColorInterpretation();<BR> switch(iColorInterp)<BR> { </FONT></DIV>
<DIV><FONT face=Arial size=2> case GCI_RedBand :
iColorOffset = 2;
<BR> break;<BR> case
GCI_GreenBand : iColorOffset =
1;<BR> break;<BR> case
GCI_BlueBand : iColorOffset =
0;<BR> break;<BR> default :
continue ;<BR> }<BR> gdErr =
poDataset->GetRasterBand(iBand)->RasterIO(GF_Read,0,0,</FONT></DIV>
<DIV><FONT face=Arial
size=2>poDataset->GetRasterXSize(), poDataset->GetRasterYSize(),((LPBYTE)pBits)
+
iColorOffset,bmi.biWidth,abs(bmi.biHeight),GDT_Byte,3,dwBytesPerLine);</FONT></DIV>
<DIV><FONT face=Arial size=2> nBandsRead
++;<BR> }</DIV>
<DIV>...................</DIV></FONT></BODY></HTML>