Lines Matching refs:rOStm
824 bool ImplWriteDIBPalette( SvStream& rOStm, BitmapReadAccess& rAcc ) in ImplWriteDIBPalette() argument
842 rOStm.Write( pEntries, nPalSize ); in ImplWriteDIBPalette()
845 return( rOStm.GetError() == 0UL ); in ImplWriteDIBPalette()
848 bool ImplWriteRLE( SvStream& rOStm, BitmapReadAccess& rAcc, bool bRLE4 ) in ImplWriteRLE() argument
953 rOStm.Write( pBuf, nBufCount ); in ImplWriteRLE()
956 rOStm << (sal_uInt8) 0; in ImplWriteRLE()
957 rOStm << (sal_uInt8) 1; in ImplWriteRLE()
961 return( rOStm.GetError() == 0UL ); in ImplWriteRLE()
964 bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAccess* pAccAlpha, sal_uLo… in ImplWriteDIBBits() argument
972 rOStm.Write( (sal_uInt8*) aVal32, 4UL ); in ImplWriteDIBBits()
975 rOStm.Write( (sal_uInt8*) aVal32, 4UL ); in ImplWriteDIBBits()
978 rOStm.Write( (sal_uInt8*) aVal32, 4UL ); in ImplWriteDIBBits()
980 rImageSize = rOStm.Tell(); in ImplWriteDIBBits()
983 rOStm.Write( rAcc.GetBuffer(), rAcc.Height() * rAcc.GetScanlineSize() ); in ImplWriteDIBBits()
987 rOStm.Write( rAcc.GetScanline( nY ), nScanlineSize ); in ImplWriteDIBBits()
992 rImageSize = rOStm.Tell(); in ImplWriteDIBBits()
993 ImplWriteRLE( rOStm, rAcc, RLE_4 == nCompression ); in ImplWriteDIBBits()
1030 rImageSize = rOStm.Tell(); in ImplWriteDIBBits()
1034 rOStm.Write(rAcc.GetBuffer(), nAlignedWidth * rAcc.Height()); in ImplWriteDIBBits()
1066 rOStm.Write( pBuf, nAlignedWidth ); in ImplWriteDIBBits()
1090 rOStm.Write( pBuf, nAlignedWidth ); in ImplWriteDIBBits()
1104 rOStm.Write( pBuf, nAlignedWidth ); in ImplWriteDIBBits()
1144 rOStm.Write( pBuf, nAlignedWidth ); in ImplWriteDIBBits()
1154 rImageSize = rOStm.Tell() - rImageSize; in ImplWriteDIBBits()
1156 return (!rOStm.GetError()); in ImplWriteDIBBits()
1159 bool ImplWriteDIBBody(const Bitmap& rBitmap, SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAcc… in ImplWriteDIBBody() argument
1207 …if((rOStm.GetCompressMode() & COMPRESSMODE_ZBITMAP) && (rOStm.GetVersion() >= SOFFICE_FILEFORMAT_4… in ImplWriteDIBBody()
1238 rOStm << aHeader.nSize; in ImplWriteDIBBody()
1239 rOStm << aHeader.nWidth; in ImplWriteDIBBody()
1240 rOStm << aHeader.nHeight; in ImplWriteDIBBody()
1241 rOStm << aHeader.nPlanes; in ImplWriteDIBBody()
1242 rOStm << aHeader.nBitCount; in ImplWriteDIBBody()
1243 rOStm << aHeader.nCompression; in ImplWriteDIBBody()
1245 nImageSizePos = rOStm.Tell(); in ImplWriteDIBBody()
1246 rOStm.SeekRel( sizeof( aHeader.nSizeImage ) ); in ImplWriteDIBBody()
1248 rOStm << aHeader.nXPelsPerMeter; in ImplWriteDIBBody()
1249 rOStm << aHeader.nYPelsPerMeter; in ImplWriteDIBBody()
1250 rOStm << aHeader.nColsUsed; in ImplWriteDIBBody()
1251 rOStm << aHeader.nColsImportant; in ImplWriteDIBBody()
1258 rOStm << aHeader.nV5RedMask; in ImplWriteDIBBody()
1259 rOStm << aHeader.nV5GreenMask; in ImplWriteDIBBody()
1260 rOStm << aHeader.nV5BlueMask; in ImplWriteDIBBody()
1261 rOStm << aHeader.nV5AlphaMask; in ImplWriteDIBBody()
1262 rOStm << aHeader.nV5CSType; in ImplWriteDIBBody()
1264 rOStm << aHeader.aV5Endpoints.aXyzRed.aXyzX; in ImplWriteDIBBody()
1265 rOStm << aHeader.aV5Endpoints.aXyzRed.aXyzY; in ImplWriteDIBBody()
1266 rOStm << aHeader.aV5Endpoints.aXyzRed.aXyzZ; in ImplWriteDIBBody()
1267 rOStm << aHeader.aV5Endpoints.aXyzGreen.aXyzX; in ImplWriteDIBBody()
1268 rOStm << aHeader.aV5Endpoints.aXyzGreen.aXyzY; in ImplWriteDIBBody()
1269 rOStm << aHeader.aV5Endpoints.aXyzGreen.aXyzZ; in ImplWriteDIBBody()
1270 rOStm << aHeader.aV5Endpoints.aXyzBlue.aXyzX; in ImplWriteDIBBody()
1271 rOStm << aHeader.aV5Endpoints.aXyzBlue.aXyzY; in ImplWriteDIBBody()
1272 rOStm << aHeader.aV5Endpoints.aXyzBlue.aXyzZ; in ImplWriteDIBBody()
1274 rOStm << aHeader.nV5GammaRed; in ImplWriteDIBBody()
1275 rOStm << aHeader.nV5GammaGreen; in ImplWriteDIBBody()
1276 rOStm << aHeader.nV5GammaBlue; in ImplWriteDIBBody()
1277 rOStm << aHeader.nV5Intent; in ImplWriteDIBBody()
1278 rOStm << aHeader.nV5ProfileData; in ImplWriteDIBBody()
1279 rOStm << aHeader.nV5ProfileSize; in ImplWriteDIBBody()
1280 rOStm << aHeader.nV5Reserved; in ImplWriteDIBBody()
1287 sal_uLong nCodedPos(rOStm.Tell()); in ImplWriteDIBBody()
1305 rOStm.SeekRel(12); in ImplWriteDIBBody()
1309 aCodec.Write(rOStm, (sal_uInt8*)aMemStm.GetData(), nUncodedSize); in ImplWriteDIBBody()
1313 nLastPos = rOStm.Tell(); in ImplWriteDIBBody()
1315 rOStm.Seek(nCodedPos); in ImplWriteDIBBody()
1316 rOStm << nCodedSize << nUncodedSize << nCompression; in ImplWriteDIBBody()
1317 rOStm.Seek(nLastPos); in ImplWriteDIBBody()
1321 bRet = (ERRCODE_NONE == rOStm.GetError()); in ImplWriteDIBBody()
1328 ImplWriteDIBPalette(rOStm, rAcc); in ImplWriteDIBBody()
1331 bRet = ImplWriteDIBBits(rOStm, rAcc, pAccAlpha, aHeader.nCompression, aHeader.nSizeImage); in ImplWriteDIBBody()
1334 nEndPos = rOStm.Tell(); in ImplWriteDIBBody()
1335 rOStm.Seek(nImageSizePos); in ImplWriteDIBBody()
1336 rOStm << aHeader.nSizeImage; in ImplWriteDIBBody()
1337 rOStm.Seek(nEndPos); in ImplWriteDIBBody()
1342 bool ImplWriteDIBFileHeader(SvStream& rOStm, BitmapReadAccess& rAcc, bool bUseDIBV5) in ImplWriteDIBFileHeader() argument
1347 rOStm << (sal_uInt16)0x4D42; // 'MB' from BITMAPFILEHEADER in ImplWriteDIBFileHeader()
1348 rOStm << (sal_uInt32)(nOffset + (rAcc.Height() * rAcc.GetScanlineSize())); in ImplWriteDIBFileHeader()
1349 rOStm << (sal_uInt16)0; in ImplWriteDIBFileHeader()
1350 rOStm << (sal_uInt16)0; in ImplWriteDIBFileHeader()
1351 rOStm << nOffset; in ImplWriteDIBFileHeader()
1353 return( rOStm.GetError() == 0UL ); in ImplWriteDIBFileHeader()
1401 SvStream& rOStm, in ImplWriteDIB() argument
1412 const sal_uInt16 nOldFormat(rOStm.GetNumberFormatInt()); in ImplWriteDIB()
1413 const sal_uLong nOldPos(rOStm.Tell()); in ImplWriteDIB()
1429 rOStm.SetNumberFormatInt(NUMBERFORMAT_INT_LITTLEENDIAN); in ImplWriteDIB()
1435 if(ImplWriteDIBFileHeader(rOStm, *pAcc, 0 != pSourceAlpha)) in ImplWriteDIB()
1437 bRet = ImplWriteDIBBody(rSource, rOStm, *pAcc, pAccAlpha, bCompressed); in ImplWriteDIB()
1442 bRet = ImplWriteDIBBody(rSource, rOStm, *pAcc, pAccAlpha, bCompressed); in ImplWriteDIB()
1455 rOStm.SetError(SVSTREAM_GENERALERROR); in ImplWriteDIB()
1456 rOStm.Seek(nOldPos); in ImplWriteDIB()
1459 rOStm.SetNumberFormatInt(nOldFormat); in ImplWriteDIB()
1567 SvStream& rOStm, in WriteDIB() argument
1571 return ImplWriteDIB(rSource, 0, rOStm, bCompressed, bFileHeader); in WriteDIB()
1576 SvStream& rOStm) in WriteDIBBitmapEx() argument
1578 if(ImplWriteDIB(rSource.GetBitmap(), 0, rOStm, true, true)) in WriteDIBBitmapEx()
1580 rOStm << (sal_uInt32)0x25091962; in WriteDIBBitmapEx()
1581 rOStm << (sal_uInt32)0xACB20201; in WriteDIBBitmapEx()
1582 rOStm << (sal_uInt8)rSource.eTransparent; in WriteDIBBitmapEx()
1586 return ImplWriteDIB(rSource.aMask, 0, rOStm, true, true); in WriteDIBBitmapEx()
1590 rOStm << rSource.aTransparentColor; in WriteDIBBitmapEx()
1601 SvStream& rOStm) in WriteDIBV5() argument
1603 return ImplWriteDIB(rSource, &rSourceAlpha, rOStm, false, true); in WriteDIBV5()