/dports/editors/abiword/abiword-3.0.5/plugins/bmp/xp/ |
H A D | ie_impGraphic_BMP.cpp | 148 if ((err = Read_BMP_Header(pBB))) return err; in _convertGraphic() 190 if ((err = Convert_BMP(pBB))) return err; in _convertGraphic() 195 DELETEP(pBB); in _convertGraphic() 206 UT_Error err = _convertGraphic(pBB); in importGraphic() 235 m_iFileType = Read2Bytes(pBB,m_iBytesRead); in Read_BMP_Header() 237 m_iFileSize = Read4Bytes(pBB,m_iBytesRead); in Read_BMP_Header() 269 m_iClrUsed = Read4Bytes(pBB,m_iBytesRead); in Read_BMP_Header() 275 m_iPadding = Read2Bytes(pBB,m_iBytesRead); in Read_BMP_Header() 277 m_iOrigin = Read2Bytes(pBB,m_iBytesRead); in Read_BMP_Header() 462 return ( ReadBytes(pBB,offset,4) ); in Read4Bytes() [all …]
|
H A D | ie_impGraphic_BMP.h | 48 virtual UT_Error importGraphic(UT_ByteBuf* pBB, 90 UT_Error _convertGraphic(UT_ByteBuf * pBB); 93 UT_Error Read_BMP_Header (UT_ByteBuf* pBB); 96 UT_Error Convert_BMP_Pallet (UT_ByteBuf* pBB); 97 UT_Error Convert_BMP (UT_ByteBuf* pBB); 100 UT_Byte ReadByte (UT_ByteBuf* pBB, UT_uint32 offset); 101 UT_uint16 Read2Bytes(UT_ByteBuf* pBB, UT_uint32 offset); 102 UT_uint32 Read4Bytes(UT_ByteBuf* pBB, UT_uint32 offset); 103 UT_uint32 ReadBytes (UT_ByteBuf* pBB, UT_uint32 offset, UT_uint32 num_bytes);
|
/dports/editors/abiword/abiword-3.0.5/src/wp/impexp/win/ |
H A D | ie_impGraphic_Win32Native.cpp | 97 pBB.truncate (0); in CreateBMPFile() 240 size_t nBlockLen = pBB->getLength(); in _convertGraphic() 423 m_iFileType = Read2Bytes(pBB,m_iBytesRead); in Read_BMP_Header() 457 m_iClrUsed = Read4Bytes(pBB,m_iBytesRead); in Read_BMP_Header() 463 m_iPadding = Read2Bytes(pBB,m_iBytesRead); in Read_BMP_Header() 465 m_iOrigin = Read2Bytes(pBB,m_iBytesRead); in Read_BMP_Header() 548 palette[i].blue = ReadByte(pBB,iOffset++); in Convert_BMP_Palette() 549 palette[i].green = ReadByte(pBB,iOffset++); in Convert_BMP_Palette() 550 palette[i].red = ReadByte(pBB,iOffset++); in Convert_BMP_Palette() 650 return ( ReadBytes(pBB,offset,4) ); in Read4Bytes() [all …]
|
H A D | ie_impGraphic_Win32Native.h | 38 virtual UT_Error importGraphic(UT_ByteBuf* pBB, 41 UT_Error _convertGraphic(UT_ByteBuf * pBB, std::string& mimetype); 42 UT_Error Read_BMP_Header(UT_ByteBuf* pBB); 44 UT_Error Convert_BMP_Palette(UT_ByteBuf* pBB); 45 UT_Error Convert_BMP(UT_ByteBuf* pBB); 47 UT_Byte ReadByte (UT_ByteBuf* pBB, 49 UT_uint16 Read2Bytes(UT_ByteBuf* pBB, 51 UT_uint32 Read4Bytes(UT_ByteBuf* pBB, 53 UT_uint32 ReadBytes(UT_ByteBuf* pBB,
|
/dports/editors/abiword/abiword-3.0.5/src/af/gr/xp/ |
H A D | gr_VectorImage.cpp | 53 UT_ByteBuf* pBB = new UT_ByteBuf; in convertToBuffer() local 55 bool bCopied = pBB->append(m_pBB_Image->getPointer(0), m_pBB_Image->getLength()); in convertToBuffer() 57 if (!bCopied) DELETEP(pBB); in convertToBuffer() 59 *ppBB = pBB; in convertToBuffer() 76 bool GR_VectorImage::convertFromBuffer(const UT_ByteBuf* pBB, in convertFromBuffer() argument 86 bool bCopied = m_pBB_Image->append(pBB->getPointer(0), pBB->getLength()); in convertFromBuffer()
|
/dports/editors/abiword/abiword-3.0.5/src/af/util/xp/ |
H A D | ut_png.cpp | 35 const UT_ByteBuf* pBB; member 42 const UT_Byte* pBytes = p->pBB->getPointer(0); in _png_read() 45 if (p->iCurPos >= p->pBB->getLength() - length) { in _png_read() 47 p->iCurPos, p->pBB->getLength(), length)); in _png_read() 48 length = p->pBB->getLength() - p->iCurPos; in _png_read() 61 bool UT_PNG_getDimensions(const UT_ByteBuf* pBB, UT_sint32& iImageWidth, UT_sint32& iImageHeight) in UT_PNG_getDimensions() argument 98 myBB.pBB = pBB; in UT_PNG_getDimensions()
|
H A D | ut_xml.cpp | 316 bool UT_XML::sniff (const UT_ByteBuf * pBB, const char * xml_type) in sniff() argument 318 UT_ASSERT (pBB); in sniff() 321 if ((pBB == 0) || (xml_type == 0)) return false; in sniff() 323 const char * buffer = reinterpret_cast<const char *>(pBB->getPointer (0)); in sniff() 324 UT_uint32 length = pBB->getLength (); in sniff() 348 UT_Error UT_XML::parse (const UT_ByteBuf * pBB) in parse() argument 351 UT_ASSERT (pBB); in parse() 353 if ((pBB == 0) || ((m_pListener == 0) && (m_pExpertListener == 0))) return UT_ERROR; in parse() 356 const char * buffer = reinterpret_cast<const char *>(pBB->getPointer (0)); in parse() 357 UT_uint32 length = pBB->getLength (); in parse()
|
H A D | ut_jpeg.cpp | 152 bool UT_JPEG_getDimensions(const UT_ByteBuf* pBB, UT_sint32& iImageWidth, in UT_JPEG_getDimensions() argument 162 _JPEG_ByteBufSrc (&cinfo, pBB); in UT_JPEG_getDimensions() 178 bool UT_JPEG_getRGBData(const UT_ByteBuf* pBB, UT_Byte* pDest, UT_sint32 iDestRowSize, bool bBGR, b… in UT_JPEG_getRGBData() argument 180 UT_return_val_if_fail(pBB, false); in UT_JPEG_getRGBData() 190 _JPEG_ByteBufSrc (&cinfo, pBB); in UT_JPEG_getRGBData()
|
H A D | ut_jpeg.h | 28 ABI_EXPORT bool UT_JPEG_getDimensions(const UT_ByteBuf* pBB, UT_sint32& iImageWidth, 31 ABI_EXPORT bool UT_JPEG_getRGBData(const UT_ByteBuf* pBB, UT_Byte* pDest,
|
/dports/games/critterding/critterding-beta12/src/utils/bullet/BulletMultiThreaded/ |
H A D | btGpu3DGridBroadphase.cpp | 421 bt3DGrid3F1U* pBB = m_hAABB; in prepareAABB() local 433 pBB->fx = proxy0->m_aabbMin.getX(); in prepareAABB() 434 pBB->fy = proxy0->m_aabbMin.getY(); in prepareAABB() 435 pBB->fz = proxy0->m_aabbMin.getZ(); in prepareAABB() 436 pBB->uw = i; in prepareAABB() 437 pBB++; in prepareAABB() 441 pBB->uw = num_small; in prepareAABB() 442 pBB++; in prepareAABB() 459 pBB->uw = i + m_maxHandles; in prepareAABB() 460 pBB++; in prepareAABB() [all …]
|
/dports/devel/emscripten/emscripten-2.0.3/tests/third_party/bullet/src/BulletMultiThreaded/ |
H A D | btGpu3DGridBroadphase.cpp | 421 bt3DGrid3F1U* pBB = m_hAABB; in prepareAABB() local 433 pBB->fx = proxy0->m_aabbMin.getX(); in prepareAABB() 434 pBB->fy = proxy0->m_aabbMin.getY(); in prepareAABB() 435 pBB->fz = proxy0->m_aabbMin.getZ(); in prepareAABB() 436 pBB->uw = i; in prepareAABB() 437 pBB++; in prepareAABB() 441 pBB->uw = num_small; in prepareAABB() 442 pBB++; in prepareAABB() 459 pBB->uw = i + m_maxHandles; in prepareAABB() 460 pBB++; in prepareAABB() [all …]
|
/dports/editors/abiword/abiword-3.0.5/src/af/gr/gtk/ |
H A D | gr_CairoImage.cpp | 58 UT_ByteBuf* pBB = new UT_ByteBuf; in convertToBuffer() local 60 bool bCopied = pBB->append(m_data.getPointer(0), m_data.getLength()); in convertToBuffer() 62 if (!bCopied) DELETEP(pBB); in convertToBuffer() 64 *ppBB = pBB; in convertToBuffer() 69 bool GR_RSVGVectorImage::convertFromBuffer(const UT_ByteBuf* pBB, in convertFromBuffer() argument 75 m_data.append(pBB->getPointer(0), pBB->getLength()); in convertFromBuffer() 83 result = rsvg_handle_write(m_svg, pBB->getPointer(0), pBB->getLength(), NULL); in convertFromBuffer()
|
H A D | gr_UnixImage.cpp | 198 UT_ByteBuf * pBB = reinterpret_cast<UT_ByteBuf *>(byteBuf); in convCallback() local 199 pBB->append(reinterpret_cast<const UT_Byte *>(buf),count); in convCallback() 219 UT_ByteBuf * pBB = 0; in convertToBuffer() local 225 pBB = new UT_ByteBuf(); in convertToBuffer() 228 reinterpret_cast<gpointer>(pBB), in convertToBuffer() 237 *ppBB = pBB; in convertToBuffer() 325 bool GR_UnixImage::convertFromBuffer(const UT_ByteBuf* pBB, in convertFromBuffer() argument 352 …_pixbuf_loader_write (ldr, static_cast<const guchar *>(pBB->getPointer (0)),static_cast<gsize>(pBB… in convertFromBuffer()
|
/dports/editors/abiword/abiword-3.0.5/src/af/gr/win/ |
H A D | gr_Win32Image.cpp | 60 const UT_ByteBuf* pBB; member 67 const UT_Byte* pBytes = p->pBB->getPointer(0); in _png_read() 96 return _convertFromPNG(pBB, iDisplayWidth, iDisplayHeight); in convertFromBuffer() 98 return _convertFromJPEG(pBB, iDisplayWidth, iDisplayHeight); in convertFromBuffer() 109 UT_ByteBuf* pBB = (UT_ByteBuf*) png_get_io_ptr(png_ptr); in _png_write() local 111 pBB->ins(pBB->getLength(), data, length); in _png_write() 139 UT_ByteBuf* pBB = new UT_ByteBuf(); in convertToBuffer() local 161 png_set_write_fn(png_ptr, (void *)pBB, _png_write, _png_flush); in convertToBuffer() 365 *ppBB = pBB; in convertToBuffer() 560 myBB.pBB = pBB; in _convertFromPNG() [all …]
|
H A D | gr_Win32Image.h | 36 …virtual bool convertFromBuffer(const UT_ByteBuf* pBB, const std::string& mimetype, UT_sint32 iDis… 49 bool _convertFromPNG(const UT_ByteBuf* pBB, UT_sint32 iDisplayWidth, UT_sint32 iDisplayHeight); 50 bool _convertFromJPEG(const UT_ByteBuf* pBB, UT_sint32 iDisplayWidth, UT_sint32 iDisplayHeight);
|
/dports/editors/abiword/abiword-3.0.5/src/wp/impexp/gtk/ |
H A D | ie_impGraphic_GdkPixbuf.cpp | 131 GdkPixbuf * pixbuf = pixbufForByteBuf ( pBB, mimetype ); in importGraphic() 149 m_pPngBB = pBB; in importGraphic() 150 pBB = NULL; in importGraphic() 261 GdkPixbuf * IE_ImpGraphic_GdkPixbuf::_loadXPM(UT_ByteBuf * pBB) in _loadXPM() argument 264 const char * pBC = reinterpret_cast<const char *>(pBB->getPointer(0)); in _loadXPM() 273 UT_sint32 length = static_cast<UT_sint32>(pBB->getLength()); in _loadXPM() 357 GdkPixbuf * IE_ImpGraphic_GdkPixbuf::pixbufForByteBuf (UT_ByteBuf * pBB, in pixbufForByteBuf() argument 360 if ( !pBB || !pBB->getLength() ) in pixbufForByteBuf() 367 if((pBB->getLength() > 9) && (strncmp (szBuf, "/* XPM */", 9) == 0)) in pixbufForByteBuf() 374 pixbuf = _loadXPM(pBB); in pixbufForByteBuf() [all …]
|
H A D | ie_impGraphic_GdkPixbuf.h | 56 virtual UT_Error importGraphic(UT_ByteBuf * pBB, FG_Graphic ** ppfg); 60 GdkPixbuf * pixbufForByteBuf (UT_ByteBuf * pBB, std::string & mimetype); 64 GdkPixbuf * _loadXPM(UT_ByteBuf * pBB);
|
/dports/editors/abiword/abiword-3.0.5/src/af/gr/cocoa/ |
H A D | gr_CocoaImage.cpp | 69 UT_ByteBuf* pBB = new UT_ByteBuf(); in convertToBuffer() local 74 *ppBB = pBB; in convertToBuffer() 165 bool GR_CocoaImage::convertFromBuffer(const UT_ByteBuf* pBB, const std::string & mimetype, in convertFromBuffer() argument 168 const char *buffer = (const char *) pBB->getPointer(0); in convertFromBuffer() 169 UT_uint32 buflen = pBB->getLength(); in convertFromBuffer() 195 _PNG_read_state closure(pBB); in convertFromBuffer()
|
/dports/editors/abiword/abiword-3.0.5/src/wp/impexp/cocoa/ |
H A D | ie_impGraphic_Cocoa.cpp | 103 UT_Error IE_ImpGraphic_Cocoa::importGraphic(UT_ByteBuf* pBB, in importGraphic() argument 106 UT_Error err = _convertGraphic(pBB); in importGraphic() 126 UT_Error IE_ImpGraphic_Cocoa::convertGraphic(UT_ByteBuf* pBB, in convertGraphic() argument 131 UT_Error err = _convertGraphic(pBB); in convertGraphic() 155 UT_Error IE_ImpGraphic_Cocoa::_convertGraphic (UT_ByteBuf* pBB) in _convertGraphic() argument 159 NSData* data = [[NSData alloc] initWithBytes:pBB->getPointer(0) length:pBB->getLength()]; in _convertGraphic()
|
H A D | ie_impGraphic_Cocoa.h | 49 virtual UT_Error importGraphic(UT_ByteBuf* pBB, 51 virtual UT_Error convertGraphic(UT_ByteBuf* pBB, 54 UT_Error _convertGraphic (UT_ByteBuf* pBB);
|
/dports/editors/abiword/abiword-3.0.5/plugins/wmf/xp/ |
H A D | ie_impGraphic_WMF.h | 46 virtual UT_Error importGraphic(UT_ByteBuf* pBB, 52 UT_Error convertGraphic(UT_ByteBuf* pBB, 55 UT_Error convertGraphicToSVG(UT_ByteBuf* pBB, UT_ByteBuf** ppBB);
|
/dports/editors/abiword/abiword-3.0.5/src/af/xap/gtk/ |
H A D | xap_UnixDlg_FileOpenSaveAs.cpp | 976 UT_ByteBuf * pBB = new UT_ByteBuf(); in previewPicture() local 977 pBB->append(bytes,num_bytes); in previewPicture() 985 GdkPixbuf * pixbuf = pixbufForByteBuf ( pBB); in previewPicture() 986 delete pBB; in previewPicture() 1027 GdkPixbuf * XAP_UnixDialog_FileOpenSaveAs::_loadXPM(UT_ByteBuf * pBB) in _loadXPM() argument 1030 const char * pBC = reinterpret_cast<const char *>(pBB->getPointer(0)); in _loadXPM() 1039 UT_sint32 length = static_cast<UT_sint32>(pBB->getLength()); in _loadXPM() 1123 if ( !pBB || !pBB->getLength() ) in pixbufForByteBuf() 1130 if((pBB->getLength() > 9) && (strncmp (szBuf, "/* XPM */", 9) == 0)) in pixbufForByteBuf() 1137 pixbuf = _loadXPM(pBB); in pixbufForByteBuf() [all …]
|
/dports/editors/abiword/abiword-3.0.5/plugins/rsvg/xp/ |
H A D | AbiRSVG.cpp | 86 virtual UT_Error importGraphic(UT_ByteBuf * pBB, FG_Graphic ** ppfg) in importGraphic() argument 88 UT_Error err = _importGraphic(pBB); in importGraphic() 109 UT_Error _importGraphic(UT_ByteBuf * pBB) in _importGraphic() argument 115 if ( FALSE == rsvg_handle_write ( rsvg, static_cast<const guchar *>(pBB->getPointer (0)), in _importGraphic() 116 static_cast<gsize>(pBB->getLength ()), &err ) ) in _importGraphic()
|
/dports/editors/abiword/abiword-3.0.5/src/text/fmt/xp/ |
H A D | fg_GraphicRaster.cpp | 414 bool FG_GraphicRaster::setRaster_PNG(const UT_ByteBuf* pBB) in setRaster_PNG() argument 419 m_pbb = pBB; in setRaster_PNG() 424 return UT_PNG_getDimensions(pBB, m_iWidth, m_iHeight); in setRaster_PNG() 428 bool FG_GraphicRaster::setRaster_JPEG(const UT_ByteBuf* pBB) in setRaster_JPEG() argument 433 m_pbb = pBB; in setRaster_JPEG() 438 return UT_JPEG_getDimensions(pBB, m_iWidth, m_iHeight); in setRaster_JPEG()
|
/dports/editors/abiword/abiword-3.0.5/src/wp/impexp/xp/ |
H A D | ie_impGraphic.cpp | 545 UT_ByteBuf* pBB = new UT_ByteBuf(); in importGraphic() local 547 if (pBB == NULL) in importGraphic() 550 if (!pBB->insertFromInput(0, input)) in importGraphic() 552 DELETEP(pBB); in importGraphic() 559 return importGraphic(pBB, ppfg); in importGraphic() 614 UT_Error IE_ImpGraphic::loadGraphic(const UT_ByteBuf &pBB, in loadGraphic() argument 620 input = gsf_input_memory_new (pBB.getPointer (0), pBB.getLength(), FALSE); in loadGraphic()
|