Kaydet (Commit) 352ca2f6 authored tarafından Tsutomu Uchino's avatar Tsutomu Uchino

#i106063# avoid additional seek for true color DIB

The position in the stream is already at the end of color palette.
üst 17e2f9c3
......@@ -419,12 +419,6 @@ bool ImplReadDIBBits(SvStream& rIStm, DIBV5Header& rHeader, BitmapWriteAccess& r
// Read data
if(bNative)
{
// true color DIB's can have a (optimization) palette
if(rHeader.nColsUsed && 8 < rHeader.nBitCount)
{
rIStm.SeekRel(rHeader.nColsUsed * ((rHeader.nSize != DIBCOREHEADERSIZE ) ? 4 : 3));
}
rIStm.Read(rAcc.GetBuffer(), rHeader.nHeight * nAlignedWidth);
}
else
......@@ -460,12 +454,6 @@ bool ImplReadDIBBits(SvStream& rIStm, DIBV5Header& rHeader, BitmapWriteAccess& r
const long nHeight(rHeader.nHeight);
sal_uInt8* pBuf = new sal_uInt8[nAlignedWidth];
// true color DIB's can have a (optimization) palette
if(rHeader.nColsUsed && 8 < rHeader.nBitCount)
{
rIStm.SeekRel(rHeader.nColsUsed * ((rHeader.nSize != DIBCOREHEADERSIZE ) ? 4 : 3));
}
const long nI(bTopDown ? 1 : -1);
long nY(bTopDown ? 0 : nHeight - 1);
long nCount(nHeight);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment