Blender V5.3
format_webp.cc File Reference
#include <unistd.h>
#include <fcntl.h>
#include <string>
#include <webp/decode.h>
#include "oiio/openimageio_support.hh"
#include "BLI_fileops.hh"
#include "BLI_mmap.hh"
#include "IMB_filetype.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "CLG_log.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static std::tuple< WriteContext, ImageSpec > blender::prepare_save_webp (ImBuf *ibuf, ImBufFlags flags)

Variables

static CLG_LogRef blender::LOG = {"image.webp"}

Format: WEBP (#IMB_FTYPE_WEBP)

const char * blender::imb_file_extensions_webp [] = {".webp", nullptr}
bool blender::imb_is_a_webp (const uchar *mem, size_t size)
ImBuf * blender::imb_loadwebp (const uchar *mem, size_t size, ImBufFlags flags, ImFileColorSpace &r_colorspace)
ImBuf * blender::imb_load_filepath_thumbnail_webp (const char *filepath, const ImBufFlags, const size_t max_thumb_size, ImFileColorSpace &, size_t *r_width, size_t *r_height)
bool blender::imb_savewebp (ImBuf *ibuf, const char *filepath, ImBufFlags flags)
Vector< uint8_t > blender::imb_save_buffer_webp (ImBuf *ibuf, ImBufFlags flags)