pictures are saved incorrectly in 2bit images on amd64 platform

Bug #266904 reported by Alex Samorukov
4
Affects Status Importance Assigned to Milestone
Cuneiform for Linux
New
Undecided
Unassigned

Bug Description

howto test:
./cuneiform English_bw.bmp -f html
bitmaps in cuneiform-out_files are with correct header, but with just 0x00 instead of content.
The same test on 32bit platforms pass fine.

Revision history for this message
Alex Samorukov (samm-os2) wrote :
Revision history for this message
Alex Samorukov (samm-os2) wrote :

and yes, forgot to add. the same test with 24 bit image work fine even on amd64

Revision history for this message
Alex Samorukov (samm-os2) wrote :

while experimenting i found that commenting out call ApplayBitMaskToDIB solve this problem. Of course, it is just workarond, but better than nothing

--- cuneiform_src/Kern/cimage/sources/main/cticontrol.cpp 2008-09-03 14:25:41 +0000
+++ cuneiform_src/Kern/cimage/sources/main/cticontrol.cpp 2008-09-05 21:34:21 +0000
@@ -729,7 +729,7 @@
   pDscDIB->GetLinesNumber() == pFrameInfo->dwHeight &&
   pDscDIB->GetLineWidth() == pFrameInfo->dwWidth )
  {
- bRet = ApplayBitMaskToDIB( pMask, pDscDIB );
+ // bRet = ApplayBitMaskToDIB( pMask, pDscDIB );
   WriteDIBtoBMP("Allex.DIBCopyToFrame.After Bit Mask.bmp", pDscDIB);
  }
  return bRet;

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

I get fully white images on 32 bit Kubuntu as well. Do you get unmasked images on 32 bit platform using the newest trunk?

If yes, what platform do you use?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.