LibreOffice Module vcl (master) 1
Functions
writer.cxx File Reference
#include <vcl/graph.hxx>
#include <tools/stream.hxx>
#include <filter/WebpWriter.hxx>
#include <vcl/BitmapReadAccess.hxx>
#include <comphelper/scopeguard.hxx>
#include <sal/log.hxx>
#include <o3tl/string_view.hxx>
#include <webp/encode.h>
Include dependency graph for writer.cxx:

Go to the source code of this file.

Functions

static int writerFunction (const uint8_t *data, size_t size, const WebPPicture *picture)
 
static WebPPreset presetToValue (std::u16string_view preset)
 
static bool writeWebp (SvStream &rStream, const BitmapEx &bitmapEx, bool lossless, std::u16string_view preset, int quality)
 
bool ExportWebpGraphic (SvStream &rStream, const Graphic &rGraphic, FilterConfigItem *pFilterConfigItem)
 

Function Documentation

◆ ExportWebpGraphic()

bool ExportWebpGraphic ( SvStream rStream,
const Graphic rGraphic,
FilterConfigItem pFilterConfigItem 
)

◆ presetToValue()

static WebPPreset presetToValue ( std::u16string_view  preset)
static

Definition at line 36 of file writer.cxx.

References o3tl::equalsIgnoreAsciiCase(), and u.

Referenced by writeWebp().

◆ writerFunction()

static int writerFunction ( const uint8_t *  data,
size_t  size,
const WebPPicture *  picture 
)
static

Definition at line 30 of file writer.cxx.

References picture, size, and stream.

Referenced by writeWebp().

◆ writeWebp()

static bool writeWebp ( SvStream rStream,
const BitmapEx bitmapEx,
bool  lossless,
std::u16string_view  preset,
int  quality 
)
static