Opened 12 years ago

Closed 12 years ago

#4412 closed defect (fixed)

georaster - JPEG compression should ignore interleaving option

Reported by: ilucena Owned by: ilucena
Priority: normal Milestone: 1.9.0
Component: GDAL_Raster Version: svn-trunk
Severity: minor Keywords: georaster
Cc:

Description

There is a unusual possibility that users would combine -co compress=JEPG-F with -co interleave={BSQ,BAND,BIL,LINE} and -co blockbsize=3 and that case the resulting georaster would not be consistent with Oracle tools.

For RGB/RGBA images the driver should not build an BSQ or BIL buffer before calling JPEG compression function and it should not try to interleave back after the data blocks are uncompressed.

The driver should just ignore interleaving and assume always BIP for *RGB, JPEG-F, 3 bands per block* or *RGBA, JPEG-F, 4 bands per block*.

Change History (1)

comment:1 by ilucena, 12 years ago

Resolution: fixed
Status: newclosed

Fixed on r23659.

On the same revision I lift the restriction on DEFLATE 3 bands per block and BSQ/BIL.

I also established the default BLOCKBSIZE=3 when it is a RGB JPEG, so users don't need to do enter that create option.

Note: See TracTickets for help on using tickets.