|
Blender V5.0
|
#include <unistd.h>#include <cstdio>#include <cstdlib>#include <fcntl.h>#include <webp/decode.h>#include <webp/encode.h>#include <webp/mux.h>#include "BLI_fileops.h"#include "BLI_mmap.h"#include "IMB_allocimbuf.hh"#include "IMB_colormanagement.hh"#include "IMB_filetype.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "MEM_guardedalloc.h"#include "CLG_log.h"Go to the source code of this file.
Functions | |
| bool | imb_is_a_webp (const uchar *mem, size_t size) |
| ImBuf * | imb_loadwebp (const uchar *mem, size_t size, int flags, ImFileColorSpace &) |
| ImBuf * | imb_load_filepath_thumbnail_webp (const char *filepath, const int, const size_t max_thumb_size, ImFileColorSpace &, size_t *r_width, size_t *r_height) |
| bool | imb_savewebp (ImBuf *ibuf, const char *filepath, int) |
Variables | |
| static CLG_LogRef | LOG = {"image.webp"} |
| bool imb_is_a_webp | ( | const uchar * | mem, |
| size_t | size ) |
| ImBuf * imb_load_filepath_thumbnail_webp | ( | const char * | filepath, |
| const int | flags, | ||
| const size_t | max_thumb_size, | ||
| ImFileColorSpace & | r_colorspace, | ||
| size_t * | r_width, | ||
| size_t * | r_height ) |
Definition at line 80 of file format_webp.cc.
References BLI_mmap_any_io_error(), BLI_mmap_free(), BLI_mmap_get_length(), BLI_mmap_get_pointer(), BLI_mmap_open(), BLI_open(), ImBuf::byte_buffer, CLOG_ERROR, data, ImBufByteBuffer::data, float, IB_byte_data, IMB_allocImBuf(), IMB_freeImBuf(), LOG, O_BINARY, ImBuf::x, and ImBuf::y.
| ImBuf * imb_loadwebp | ( | const uchar * | mem, |
| size_t | size, | ||
| int | flags, | ||
| ImFileColorSpace & | r_colorspace ) |
Definition at line 45 of file format_webp.cc.
References ImBuf::byte_buffer, CLOG_ERROR, ImBufByteBuffer::data, ImBuf::ftype, IB_test, IMB_alloc_byte_pixels(), IMB_allocImBuf(), imb_is_a_webp(), LOG, size(), ImBuf::x, and ImBuf::y.
| bool imb_savewebp | ( | ImBuf * | ibuf, |
| const char * | filepath, | ||
| int | flags ) |
Definition at line 154 of file format_webp.cc.
References BLI_fopen(), ImBuf::byte_buffer, CLOG_ERROR, ImBufByteBuffer::colorspace, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), ImBufByteBuffer::data, ImBuf::foptions, i, IMB_colormanagement_space_to_icc_profile(), IMB_get_pixel_count(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LOG, MEM_freeN(), MEM_malloc_arrayN(), ImBuf::planes, ImbFormatOptions::quality, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), ImBuf::x, and ImBuf::y.
|
static |
Definition at line 35 of file format_webp.cc.