LibreOffice Module vcl (master) 1
Functions
reader.cxx File Reference
#include <memory>
#include <vcl/graph.hxx>
#include <tools/stream.hxx>
#include <filter/WebpReader.hxx>
#include <bitmap/BitmapWriteAccess.hxx>
#include <salinst.hxx>
#include <sal/log.hxx>
#include <unotools/configmgr.hxx>
#include <svdata.hxx>
#include <comphelper/scopeguard.hxx>
#include <webp/decode.h>
Include dependency graph for reader.cxx:

Go to the source code of this file.

Functions

static bool readWebpInfo (SvStream &stream, std::vector< uint8_t > &data, WebPBitstreamFeatures &features)
 
static bool readWebp (SvStream &stream, Graphic &graphic)
 
bool ImportWebpGraphic (SvStream &rStream, Graphic &rGraphic)
 
bool ReadWebpInfo (SvStream &stream, Size &pixelSize, sal_uInt16 &bitsPerPixel, bool &hasAlpha)
 

Function Documentation

◆ ImportWebpGraphic()

bool ImportWebpGraphic ( SvStream rStream,
Graphic rGraphic 
)

Definition at line 298 of file reader.cxx.

References readWebp(), SvStream::SetError(), and SVSTREAM_FILEFORMAT_ERROR.

Referenced by GraphicFilter::readWEBP().

◆ readWebp()

static bool readWebp ( SvStream stream,
Graphic graphic 
)
static

◆ ReadWebpInfo()

bool ReadWebpInfo ( SvStream stream,
Size pixelSize,
sal_uInt16 &  bitsPerPixel,
bool &  hasAlpha 
)

Definition at line 306 of file reader.cxx.

References readWebpInfo(), and stream.

Referenced by vcl::GraphicFormatDetector::checkWEBP().

◆ readWebpInfo()

static bool readWebpInfo ( SvStream stream,
std::vector< uint8_t > &  data,
WebPBitstreamFeatures &  features 
)
static

Definition at line 33 of file reader.cxx.

References stream.

Referenced by readWebp(), and ReadWebpInfo().