Lines Matching refs:aHeader
616 DIBV5Header aHeader; in ImplReadDIBBody() local
621 if ( ImplReadDIBInfoHeader( rIStm, aHeader, bTopDown ) in ImplReadDIBBody()
622 && aHeader.nWidth != 0 in ImplReadDIBBody()
623 && aHeader.nHeight != 0 in ImplReadDIBBody()
624 && aHeader.nBitCount != 0 ) in ImplReadDIBBody()
626 if ( nOffset > 0 && aHeader.nSize > nOffset ) in ImplReadDIBBody()
633 const sal_uInt16 nBitCount(discretizeBitcount(aHeader.nBitCount)); in ImplReadDIBBody()
634 const Size aSizePixel(aHeader.nWidth, aHeader.nHeight); in ImplReadDIBBody()
640 bool bAlphaPossible(pBmpAlpha && aHeader.nBitCount == 32); in ImplReadDIBBody()
644 const bool bRedSet(0 != aHeader.nV5RedMask); in ImplReadDIBBody()
645 const bool bGreenSet(0 != aHeader.nV5GreenMask); in ImplReadDIBBody()
646 const bool bBlueSet(0 != aHeader.nV5BlueMask); in ImplReadDIBBody()
652 if((bRedSet || bGreenSet || bBlueSet) && (0 == aHeader.nV5AlphaMask)) in ImplReadDIBBody()
673 if(aHeader.nColsUsed) in ImplReadDIBBody()
675 nColors = (sal_uInt16)aHeader.nColsUsed; in ImplReadDIBBody()
679 nColors = ( 1 << aHeader.nBitCount ); in ImplReadDIBBody()
683 if(ZCOMPRESS == aHeader.nCompression) in ImplReadDIBBody()
691 rIStm >> nCodedSize >> nUncodedSize >> aHeader.nCompression; in ImplReadDIBBody()
718 ImplReadDIBPalette(*pIStm, *pAcc, aHeader.nSize != DIBCOREHEADERSIZE); in ImplReadDIBBody()
731 bRet = ImplReadDIBBits(*pIStm, aHeader, *pAcc, pAccAlpha, bTopDown, bAlphaUsed); in ImplReadDIBBody()
733 if(bRet && aHeader.nXPelsPerMeter && aHeader.nYPelsPerMeter) in ImplReadDIBBody()
738 Fraction(1000, aHeader.nXPelsPerMeter), in ImplReadDIBBody()
739 Fraction(1000, aHeader.nYPelsPerMeter)); in ImplReadDIBBody()
742 aNewBmp.SetPrefSize(Size(aHeader.nWidth, aHeader.nHeight)); in ImplReadDIBBody()
1162 DIBV5Header aHeader; in ImplWriteDIBBody() local
1168 …aHeader.nSize = pAccAlpha ? DIBV5HEADERSIZE : DIBINFOHEADERSIZE; // size dependent on CF_DIB type … in ImplWriteDIBBody()
1169 aHeader.nWidth = rAcc.Width(); in ImplWriteDIBBody()
1170 aHeader.nHeight = rAcc.Height(); in ImplWriteDIBBody()
1171 aHeader.nPlanes = 1; in ImplWriteDIBBody()
1175 aHeader.nBitCount = (BMP_FORMAT_16BIT_TC_LSB_MASK == rAcc.GetScanlineFormat()) ? 16 : 32; in ImplWriteDIBBody()
1176 aHeader.nSizeImage = rAcc.Height() * rAcc.GetScanlineSize(); in ImplWriteDIBBody()
1191 aHeader.nBitCount = nBitCount; in ImplWriteDIBBody()
1192 aHeader.nSizeImage = rAcc.Height() * AlignedWidth4Bytes(rAcc.Width() * aHeader.nBitCount); in ImplWriteDIBBody()
1209 aHeader.nCompression = ZCOMPRESS; in ImplWriteDIBBody()
1213 aHeader.nCompression = nCompression; in ImplWriteDIBBody()
1230 aHeader.nXPelsPerMeter = basegfx::fround(rAcc.Width() / fabs(fBmpWidthM)); in ImplWriteDIBBody()
1231 aHeader.nYPelsPerMeter = basegfx::fround(rAcc.Height() / fabs(fBmpHeightM)); in ImplWriteDIBBody()
1235 aHeader.nColsUsed = ((!pAccAlpha && aHeader.nBitCount <= 8) ? rAcc.GetPaletteEntryCount() : 0); in ImplWriteDIBBody()
1236 aHeader.nColsImportant = 0; 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()
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()
1255 aHeader.nV5CSType = 0x57696E20; // LCS_WINDOWS_COLOR_SPACE in ImplWriteDIBBody()
1256 aHeader.nV5Intent = 0x00000004; // LCS_GM_IMAGES 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()
1283 if(ZCOMPRESS == aHeader.nCompression) in ImplWriteDIBBody()
1286 SvMemoryStream aMemStm(aHeader.nSizeImage + 4096, 65535); in ImplWriteDIBBody()
1293 if(aHeader.nColsUsed) in ImplWriteDIBBody()
1299 bRet = ImplWriteDIBBits(aMemStm, rAcc, pAccAlpha, nCompression, aHeader.nSizeImage); in ImplWriteDIBBody()
1326 if(aHeader.nColsUsed) in ImplWriteDIBBody()
1331 bRet = ImplWriteDIBBits(rOStm, rAcc, pAccAlpha, aHeader.nCompression, aHeader.nSizeImage); in ImplWriteDIBBody()
1336 rOStm << aHeader.nSizeImage; in ImplWriteDIBBody()