LibreOffice Module vcl (master) 1
Classes | Functions | Variables
pdfwriter_impl2.cxx File Reference
#include <pdf/pdfwriter_impl.hxx>
#include <vcl/pdfextoutdevdata.hxx>
#include <vcl/virdev.hxx>
#include <vcl/gdimtf.hxx>
#include <vcl/metaact.hxx>
#include <vcl/BitmapReadAccess.hxx>
#include <vcl/graph.hxx>
#include <unotools/streamwrap.hxx>
#include <tools/helpers.hxx>
#include <tools/fract.hxx>
#include <tools/stream.hxx>
#include <comphelper/fileformat.h>
#include <comphelper/hash.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/io/XSeekable.hpp>
#include <com/sun/star/graphic/GraphicProvider.hpp>
#include <com/sun/star/graphic/XGraphicProvider.hpp>
#include <com/sun/star/beans/XMaterialHolder.hpp>
#include <cppuhelper/implbase.hxx>
#include <o3tl/unit_conversion.hxx>
#include <vcl/skia/SkiaHelper.hxx>
#include <sal/log.hxx>
#include <memory>
Include dependency graph for pdfwriter_impl2.cxx:

Go to the source code of this file.

Classes

class  EncHashTransporter
 
struct  BitStreamState
 

Functions

static bool lcl_canUsePDFAxialShading (const Gradient &rGradient)
 
static bool isSet (const Scanline i_pLine, tools::Long i_nIndex)
 
static tools::Long findBitRunImpl (const Scanline i_pLine, tools::Long i_nStartIndex, tools::Long i_nW, bool i_bSet)
 
static tools::Long findBitRun (const Scanline i_pLine, tools::Long i_nStartIndex, tools::Long i_nW, bool i_bSet)
 
static tools::Long findBitRun (const Scanline i_pLine, tools::Long i_nStartIndex, tools::Long i_nW)
 

Variables

const tools::Long unsetRun [256]
 
const tools::Long setRun [256]
 
const PixelCode WhitePixelCodes []
 
const PixelCode BlackPixelCodes []
 

Function Documentation

◆ findBitRun() [1/2]

static tools::Long findBitRun ( const Scanline  i_pLine,
tools::Long  i_nStartIndex,
tools::Long  i_nW 
)
static

Definition at line 1599 of file pdfwriter_impl2.cxx.

References findBitRunImpl(), and isSet().

◆ findBitRun() [2/2]

static tools::Long findBitRun ( const Scanline  i_pLine,
tools::Long  i_nStartIndex,
tools::Long  i_nW,
bool  i_bSet 
)
static

Definition at line 1591 of file pdfwriter_impl2.cxx.

References findBitRunImpl().

Referenced by vcl::PDFWriterImpl::writeG4Stream().

◆ findBitRunImpl()

static tools::Long findBitRunImpl ( const Scanline  i_pLine,
tools::Long  i_nStartIndex,
tools::Long  i_nW,
bool  i_bSet 
)
static

Definition at line 1528 of file pdfwriter_impl2.cxx.

References nIndex, setRun, and unsetRun.

Referenced by findBitRun().

◆ isSet()

static bool isSet ( const Scanline  i_pLine,
tools::Long  i_nIndex 
)
static

Definition at line 1523 of file pdfwriter_impl2.cxx.

Referenced by findBitRun(), and vcl::PDFWriterImpl::writeG4Stream().

◆ lcl_canUsePDFAxialShading()

static bool lcl_canUsePDFAxialShading ( const Gradient rGradient)
static

Definition at line 1986 of file pdfwriter_impl2.cxx.

References Gradient::GetSteps(), and Gradient::GetStyle().

Referenced by vcl::PDFWriterImpl::playMetafile().

Variable Documentation

◆ BlackPixelCodes

const PixelCode BlackPixelCodes[]

Definition at line 1763 of file pdfwriter_impl2.cxx.

Referenced by vcl::PDFWriterImpl::putG4Span().

◆ setRun

const tools::Long setRun[256]
Initial value:
=
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
}

Definition at line 1483 of file pdfwriter_impl2.cxx.

Referenced by findBitRunImpl().

◆ WhitePixelCodes

const PixelCode WhitePixelCodes[]

Definition at line 1655 of file pdfwriter_impl2.cxx.

Referenced by vcl::PDFWriterImpl::putG4Span().