Opened 11 years ago
Closed 10 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 |
Cc: |
Description
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 Changed 10 years ago by
Milestone: | → 1.9.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
r22769 /trunk/gdal/frmts/gtiff/geotiff.cpp: GTiff: optimize GTiffRGBABand implementation by pushing the other image components into the block cache (#3476)