Opened 13 years ago

Closed 13 years ago

#3956 closed defect (fixed)

HFA driver can't read 2 bit compressed data

Reported by: ianmartin Owned by: warmerdam
Priority: normal Milestone: 1.8.1
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: hfa
Cc:

Description

Trying to read a 2 bit run length encoded compressed img file results in

0ERROR 1: Attempt to uncompress an unsupported pixel data type.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0

Patch attached

Attachments (2)

hfa_2bit.patch (1.0 KB ) - added by ianmartin 13 years ago.
2bit_compressed.img (4.5 KB ) - added by ianmartin 13 years ago.
Test image that currently fails

Download all attachments as: .zip

Change History (4)

by ianmartin, 13 years ago

Attachment: hfa_2bit.patch added

comment:1 by ianmartin, 13 years ago

Version: unspecifiedsvn-trunk

by ianmartin, 13 years ago

Attachment: 2bit_compressed.img added

Test image that currently fails

comment:2 by warmerdam, 13 years ago

Component: defaultGDAL_Raster
Milestone: 1.8.1
Resolution: fixed
Status: newclosed

I have applied the patch and implemented some modest testing for this image form in trunk (r21671). Code change also backported to 1.8 branch (r21672).

Thanks!

Note: See TracTickets for help on using tickets.