Opened 12 years ago

Closed 11 years ago

#3476 closed enhancement (fixed)

GTiffRGBABand implementation could be substantially optimized.

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: GTiff


The TIFFReadRGBABand implementation of IReadBlock() reads the image as RGBA, extracts one component, and discards the rest. Thus a typical translation via this interface results in reading the image four times. In case of compressed images this might be fairly expensive.

The IReadBlock() interface ought to push the other image components into the block cache to short circuit future reads.

The RGBA interface is fairly rarely used so this is not very high priority.

Change History (1)

comment:1 by Even Rouault, 11 years ago

Milestone: 1.9.0
Resolution: fixed
Status: newclosed

r22769 /trunk/gdal/frmts/gtiff/geotiff.cpp: GTiff: optimize GTiffRGBABand implementation by pushing the other image components into the block cache (#3476)

Note: See TracTickets for help on using tickets.