Lines Matching refs:nBytesRead

202 static bool RenderAsEMF(const sal_uInt8* pBuf, sal_uInt32 nBytesRead, Graphic &rGraphic)  in RenderAsEMF()  argument
233 osl_writeFile(pIn, pBuf, nBytesRead, &nCount); in RenderAsEMF()
248 if (nCount == nBytesRead && bEMFSupported) in RenderAsEMF()
259 static bool RenderAsPNGThroughHelper(const sal_uInt8* pBuf, sal_uInt32 nBytesRead, in RenderAsPNGThroughHelper() argument
274 osl_writeFile(pIn, pBuf, nBytesRead, &nCount); in RenderAsPNGThroughHelper()
276 if (nCount == nBytesRead) in RenderAsPNGThroughHelper()
304 static bool RenderAsPNGThroughConvert(const sal_uInt8* pBuf, sal_uInt32 nBytesRead, in RenderAsPNGThroughConvert() argument
322 return RenderAsPNGThroughHelper(pBuf, nBytesRead, rGraphic, fileName, args, in RenderAsPNGThroughConvert()
326 static bool RenderAsPNGThroughGS(const sal_uInt8* pBuf, sal_uInt32 nBytesRead, in RenderAsPNGThroughGS() argument
364 return RenderAsPNGThroughHelper(pBuf, nBytesRead, rGraphic, fileName, args, in RenderAsPNGThroughGS()
368 static bool RenderAsPNG(const sal_uInt8* pBuf, sal_uInt32 nBytesRead, Graphic &rGraphic) in RenderAsPNG() argument
370 if (RenderAsPNGThroughConvert(pBuf, nBytesRead, rGraphic)) in RenderAsPNG()
373 return RenderAsPNGThroughGS(pBuf, nBytesRead, rGraphic); in RenderAsPNG()
416 void MakePreview(sal_uInt8* pBuf, sal_uInt32 nBytesRead, in MakePreview() argument
439 sal_uInt8* pDest = ImplSearchEntry( pBuf, (sal_uInt8*)"%%Title:", nBytesRead - 32, 8 ); in MakePreview()
455 pDest = ImplSearchEntry( pBuf, (sal_uInt8*)"%%Creator:", nBytesRead - 32, 10 ); in MakePreview()
468 pDest = ImplSearchEntry( pBuf, (sal_uInt8*)"%%CreationDate:", nBytesRead - 32, 15 ); in MakePreview()
484 pDest = ImplSearchEntry( pBuf, (sal_uInt8*)"%%LanguageLevel:", nBytesRead - 4, 16 ); in MakePreview()
579 sal_uInt32 nBytesRead = rStream.Read( pBuf, nPSSize ); in GraphicImport() local
580 if ( nBytesRead == nPSSize ) in GraphicImport()
585 sal_uInt8* pDest = ImplSearchEntry( pBuf, (sal_uInt8*)"%%BeginPreview:", nBytesRead - 32, 15 ); in GraphicImport()
685 sal_uInt8* pDest = ImplSearchEntry( pBuf, (sal_uInt8*)"%%BoundingBox:", nBytesRead, 14 ); in GraphicImport()
708 bHasPreview = RenderAsEMF(pBuf, nBytesRead, aGraphic); in GraphicImport()
710 bHasPreview = RenderAsPNG(pBuf, nBytesRead, aGraphic); in GraphicImport()
716 MakePreview(pBuf, nBytesRead, nWidth, nHeight, in GraphicImport()