Ticket #3476 (closed enhancement: fixed)

Opened 3 years ago

Last modified 22 months ago

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

Changed 22 months ago by rouault

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.9.0

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.