LibreOffice Module vcl (master) 1
|
#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>
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) |
bool ExportWebpGraphic | ( | SvStream & | rStream, |
const Graphic & | rGraphic, | ||
FilterConfigItem * | pFilterConfigItem | ||
) |
Definition at line 193 of file writer.cxx.
References Graphic::GetBitmapEx(), FilterConfigItem::ReadBool(), FilterConfigItem::ReadInt32(), FilterConfigItem::ReadString(), and writeWebp().
Referenced by GraphicFilter::ExportGraphic().
|
static |
Definition at line 36 of file writer.cxx.
References o3tl::equalsIgnoreAsciiCase(), and u.
Referenced by writeWebp().
|
static |
Definition at line 30 of file writer.cxx.
References picture, size, and stream.
Referenced by writeWebp().
|
static |
Definition at line 51 of file writer.cxx.
References config, BitmapEx::GetAlphaMask(), BitmapEx::GetBitmap(), BitmapReadAccess::GetBuffer(), BitmapColor::GetIndex(), BitmapReadAccess::GetPixelFromData(), BitmapReadAccess::GetScanline(), BitmapInfoAccess::GetScanlineFormat(), BitmapInfoAccess::GetScanlineSize(), BitmapEx::GetSizePixel(), Size::Height(), BitmapInfoAccess::Height(), BitmapEx::IsAlpha(), BitmapInfoAccess::IsBottomUp(), AlphaMask::IsEmpty(), N24BitTcBgr, N24BitTcRgb, picture, presetToValue(), SAL_WARN, Size::Width(), BitmapInfoAccess::Width(), writerFunction(), x, and y.
Referenced by ExportWebpGraphic().