Home
last modified time | relevance | path

Searched refs:nColors (Results 1 – 18 of 18) sorted by relevance

/aoo42x/main/vcl/unx/generic/dtrans/
H A Dbmp.cxx142 sal_uInt32 nColors = 0; in X11_getPaletteBmpFromImage() local
185 if( nPixel >= nColors ) in X11_getPaletteBmpFromImage()
186 nColors = nPixel+1; in X11_getPaletteBmpFromImage()
203 writeLE( nColors, pBuffer+46 ); in X11_getPaletteBmpFromImage()
204 writeLE( nColors, pBuffer+50 ); in X11_getPaletteBmpFromImage()
208 nColors = (1U << nBitCount); in X11_getPaletteBmpFromImage()
215 for( sal_uInt32 i = 0; i < nColors; i++ ) in X11_getPaletteBmpFromImage()
474 sal_uInt32 nColors = readLE32( pData+32 ); in setBitmapDataPalette() local
562 int nColors = 1 << m_aInfo.depth; in setBitmapDataTCDither() local
564 for( i = 0; i < nColors; i++ ) in setBitmapDataTCDither()
[all …]
/aoo42x/main/filter/source/graphicfilter/itga/
H A Ditga.cxx677 sal_uInt16 nColors = mpFileHeader->nColorMapLength; in ImplReadPalette() local
679 if ( !nColors ) // colors == 0 ? -> we will build a grayscale palette in ImplReadPalette()
683 nColors = 256; in ImplReadPalette()
687 mpColorMap = new sal_uInt32[ nColors ]; // we will always index dwords in ImplReadPalette()
695 for ( sal_uLong i = 0; i < nColors; i++ ) in ImplReadPalette()
703 mpTGA->Read( mpColorMap, 4 * nColors ); in ImplReadPalette()
708 for ( sal_uLong i = 0; i < nColors; i++ ) in ImplReadPalette()
718 for ( sal_uLong i = 0; i < nColors; i++ ) in ImplReadPalette()
734 if ( nColors > nDestColors ) in ImplReadPalette()
737 mpAcc->SetPaletteEntryCount( nColors ); in ImplReadPalette()
[all …]
/aoo42x/main/vcl/unx/headless/
H A Dsvpbmp.cxx72 unsigned int nColors = rPalette.GetEntryCount(); in Create() local
73 for( unsigned int i = 0; i < nColors; i++ ) in Create()
230 unsigned int nColors = aPalette->size(); in AcquireBuffer() local
231 if( nColors > 0 ) in AcquireBuffer()
233 pBuf->maPalette.SetEntryCount( nColors ); in AcquireBuffer()
234 for( unsigned int i = 0; i < nColors; i++ ) in AcquireBuffer()
294 const sal_uInt32 nColors = std::min( in ReleaseBuffer() local
297 for( sal_uInt32 i = 0; i < nColors; i++ ) in ReleaseBuffer()
/aoo42x/main/vcl/source/gdi/
H A Doctree.cxx75 Octree::Octree( sal_uLong nColors ) : in Octree() argument
76 nMax ( nColors ), in Octree()
81 pNodeCache = new ImpNodeCache( nColors ); in Octree()
87 Octree::Octree( const BitmapReadAccess& rReadAcc, sal_uLong nColors ) : in Octree() argument
88 nMax ( nColors ), in Octree()
93 pNodeCache = new ImpNodeCache( nColors ); in Octree()
304 const sal_uLong nColors = rPal.GetEntryCount(); in InverseColorMap() local
314 for( sal_uLong nIndex = 0; nIndex < nColors; nIndex++ ) in InverseColorMap()
H A Ddibtools.cxx264 const sal_uInt16 nColors = rAcc.GetPaletteEntryCount(); in ImplReadDIBPalette() local
265 const sal_uLong nPalSize = nColors * ( bQuad ? 4UL : 3UL ); in ImplReadDIBPalette()
272 for( sal_uInt16 i = 0; i < nColors; i++ ) in ImplReadDIBPalette()
666 sal_uInt16 nColors(0); in ImplReadDIBBody() local
675 nColors = (sal_uInt16)aHeader.nColsUsed; in ImplReadDIBBody()
679 nColors = ( 1 << aHeader.nBitCount ); in ImplReadDIBBody()
715 if(nColors) in ImplReadDIBBody()
717 pAcc->SetPaletteEntryCount(nColors); in ImplReadDIBBody()
826 const sal_uInt16 nColors = rAcc.GetPaletteEntryCount(); in ImplWriteDIBPalette() local
827 const sal_uLong nPalSize = nColors * 4UL; in ImplWriteDIBPalette()
[all …]
H A Dbitmap3.cxx3212 long nColors, long nPixels, long& rIndex ) in ImplMedianCut() argument
3236 if( 1 == nColors || 1 == nPixels ) in ImplMedianCut()
3283 ImplMedianCut( pBuf, rPal, nR1, nR2, nG1, nG2, nB1, nB, nColors >> 1, nPixNew, rIndex ); in ImplMedianCut()
3288 ImplMedianCut( pBuf, rPal, nR1, nR2, nG1, nG2, nB1, nB - 1, nColors >> 1, nPixOld, rIndex ); in ImplMedianCut()
3289 … ImplMedianCut( pBuf, rPal, nR1, nR2, nG1, nG2, nB, nB2, nColors >> 1, nPixels - nPixOld, rIndex ); in ImplMedianCut()
3306 ImplMedianCut( pBuf, rPal, nR1, nR2, nG1, nG, nB1, nB2, nColors >> 1, nPixNew, rIndex ); in ImplMedianCut()
3311 ImplMedianCut( pBuf, rPal, nR1, nR2, nG1, nG - 1, nB1, nB2, nColors >> 1, nPixOld, rIndex ); in ImplMedianCut()
3312 … ImplMedianCut( pBuf, rPal, nR1, nR2, nG, nG2, nB1, nB2, nColors >> 1, nPixels - nPixOld, rIndex ); in ImplMedianCut()
3329 ImplMedianCut( pBuf, rPal, nR1, nR, nG1, nG2, nB1, nB2, nColors >> 1, nPixNew, rIndex ); in ImplMedianCut()
3334 ImplMedianCut( pBuf, rPal, nR1, nR - 1, nG1, nG2, nB1, nB2, nColors >> 1, nPixOld, rIndex ); in ImplMedianCut()
[all …]
/aoo42x/main/vcl/os2/source/gdi/
H A Dsalbmp.cxx318 USHORT nColors = 0; in ImplGetDIBColorCount() local
328 nColors = (USHORT) pBIH->cclrUsed; in ImplGetDIBColorCount()
330 nColors = 1 << pBIH->cBitCount; in ImplGetDIBColorCount()
334 return nColors; in ImplGetDIBColorCount()
348 const USHORT nColors = ( nBits <= 8 ) ? ( 1 << nBits ) : 0; in ImplCreateDIB() local
350 …hDIB = (HANDLE) rtl_allocateZeroMemory( sizeof( BITMAPINFOHEADER2 ) + nColors * sizeof( RGB2 ) + n… in ImplCreateDIB()
373 if( nColors ) in ImplCreateDIB()
375 const USHORT nMinCount = Min( nColors, rPal.GetEntryCount() ); in ImplCreateDIB()
/aoo42x/main/vcl/win/source/gdi/
H A Dsalbmp.cxx728 sal_uInt16 nColors = 0; in ImplGetDIBColorCount() local
740 nColors = (sal_uInt16) pBIH->biClrUsed; in ImplGetDIBColorCount()
742 nColors = 1 << pBIH->biBitCount; in ImplGetDIBColorCount()
746 nColors = 1 << ( (PBITMAPCOREHEADER) pBI )->bcBitCount; in ImplGetDIBColorCount()
751 return nColors; in ImplGetDIBColorCount()
773 const sal_uInt16 nColors = (nBits <= 8) ? (1 << nBits) : 0; in ImplCreateDIB() local
774 const sal_uLong nHeaderSize = sizeof( BITMAPINFOHEADER ) + nColors * sizeof( RGBQUAD ); in ImplCreateDIB()
798 if( nColors ) in ImplCreateDIB()
801 const sal_uInt16 nMinCount = Min( nColors, rPal.GetEntryCount() ); in ImplCreateDIB()
/aoo42x/main/svtools/source/filter/
H A Dsgfbram.cxx287 sal_uInt16 nColors; // Anzahl der Farben (1,16,256) in SgfFilterBMap() local
298 nColors=1<<nColBits; in SgfFilterBMap()
301 aBmpHead.SetOfs(sizeof(aBmpHead)+sizeof(aBmpInfo)+nColors*4); in SgfFilterBMap()
321 if (nColors==2) in SgfFilterBMap()
337 } else if (nColors==16) { in SgfFilterBMap()
383 } else if (nColors==256) { in SgfFilterBMap()
H A Dfilter.cxx931 …sal_Int32 nColors = rConfigItem.ReadInt32( String( RTL_CONSTASCII_USTRINGPARAM( "Color" ) ), 0 ); … in ImpGetScaledGraphic() local
932 if ( nColors ) // graphic conversion necessary ? in ImpGetScaledGraphic()
935 …aBmpEx.Convert( (BmpConversion)nColors ); // the entries in the xml section have the same meanin… in ImpGetScaledGraphic()
/aoo42x/main/filter/source/graphicfilter/ipcx/
H A Dipcx.cxx123 sal_uInt16 nColors = 1 << nDestBitsPerPixel; in ReadPCX() local
125 pAcc->SetPaletteEntryCount( nColors ); in ReadPCX()
126 for ( sal_uInt16 i = 0; i < nColors; i++, pPal += 3 ) in ReadPCX()
/aoo42x/main/editeng/source/rtf/
H A Drtfgrf.cxx216 sal_uInt16 nColors = (1 << n4ColBits); // Anzahl der Farben ( 1, 16, 256 ) in WriteBMPHeader() local
222 if( 256 >= nColors ) in WriteBMPHeader()
223 nOffset += nColors * 4; in WriteBMPHeader()
/aoo42x/main/vcl/inc/vcl/
H A Doctree.hxx91 Octree( const BitmapReadAccess& rReadAcc, sal_uLong nColors );
92 Octree( sal_uLong nColors );
H A Dbitmap.hxx425 long nColors, long nPixels, long& rIndex );
/aoo42x/main/filter/source/graphicfilter/icgm/
H A Dbitmap.cxx233 sal_uInt16 nColors = sal::static_int_cast< sal_uInt16 >( in ImplSetCurrentPalette() local
235 rDesc.mpAcc->SetPaletteEntryCount( nColors ); in ImplSetCurrentPalette()
236 for ( sal_uInt16 i = 0; i < nColors; i++ ) in ImplSetCurrentPalette()
H A Dclass5.cxx317 …sal_uInt32 nColors = ( mnElementSize - pElement->nColorIndexPrecision ) / ( 3 * pElement->nColorPr… in ImplDoClass5() local
318 if ( nColors ) in ImplDoClass5()
320 sal_uInt32 nMaxColorIndex = nColorStartIndex + nColors - 1; in ImplDoClass5()
/aoo42x/main/vcl/unx/generic/gdi/
H A Dsalbmp.cxx130 const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; in ImplCreateDIB() local
163 if( nColors ) in ImplCreateDIB()
166 pDIB->maPalette.SetEntryCount( nColors ); in ImplCreateDIB()
/aoo42x/main/svx/inc/svx/
H A Dsvimbase.hxx75 sal_uIntPtr nColors; member

Completed in 128 milliseconds