[Gdal-dev] Bug in BMP driver?
Winkler, Roland
RWinkler at DEFiNiENS.com
Tue Nov 4 11:43:58 EST 2003
I was able to create a artifical .bmp where the behaviour is reproducable. I
submitted the bug with bug number 429 in bugzilla. Unfortunately I wasn't
able to create an attachment (SQL-Server got stuck somewhere). I will send
the sample with a seperate mail to you, Frank, please attach it to bug 429.
Everybody is free to do whatever he wants with this bitmap.
Best regards,
Roland
> -----Original Message-----
> From: Frank Warmerdam [mailto:warmerdam at pobox.com]
> Sent: Dienstag, 4. November 2003 15:34
> To: gdal-dev at remotesensing.org
> Subject: Re: [Gdal-dev] Bug in BMP driver?
>
>
> Winkler, Roland wrote:
> > Hi,
> >
> > I have problems reading a 32 bit RGB Windows Bitmap (type
> BMPC_RGB). I
> > changed the ::IReadblock for 32 bit bitmaps and it worked
> afterwards:
> ...
> > the reason for the -1 in the 32 bit case:
> > in 24 bit case for each pixel the array pabyScan looks like [BGR]
> > pImage
> > is assigned [RGB]
> > the implementation for 32 implies that the order of
> pabyScan is [ABGR],
> > but I think it should be [BGRA].
> > I'm not quite sure about it, because I have only one 32 bit
> bitmap and I
> > couldn't produce another example.
> >
> > Has anybody else problems with 32 bit ..bmp's, or is my
> .bmp corrupt?
>
> Roland,
>
> Would it be possible for you to submit the suggested fix
> along with the sample bmp demonstrating the problem in Bugzilla?
>
http://bugzilla.remotesensing.org/enter_bug.cgi?product=GDAL
Then we can have Andrey verify your fix, and apply it. I would also like to
add your 32bit BMP file to my test files.
Best regards,
--
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________
Gdal-dev mailing list
Gdal-dev at remotesensing.org
http://remotesensing.org/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list