|
Blender V4.3
|
#include <unistd.h>#include <cstdio>#include <cstdlib>#include <fcntl.h>#include <webp/decode.h>#include <webp/encode.h>#include "BLI_fileops.h"#include "BLI_mmap.h"#include "BLI_utildefines.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"Go to the source code of this file.
Functions | |
| bool | imb_is_a_webp (const uchar *buf, size_t size) |
| ImBuf * | imb_loadwebp (const uchar *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE]) |
| ImBuf * | imb_load_filepath_thumbnail_webp (const char *filepath, const int, const size_t max_thumb_size, char colorspace[], size_t *r_width, size_t *r_height) |
| bool | imb_savewebp (ImBuf *ibuf, const char *filepath, int) |
| bool imb_is_a_webp | ( | const uchar * | buf, |
| size_t | size ) |
Definition at line 33 of file webp.cc.
Referenced by imb_loadwebp().
| ImBuf * imb_load_filepath_thumbnail_webp | ( | const char * | filepath, |
| const int | flags, | ||
| const size_t | max_thumb_size, | ||
| char | colorspace[], | ||
| size_t * | r_width, | ||
| size_t * | r_height ) |
Definition at line 78 of file webp.cc.
References BLI_mmap_free(), BLI_mmap_get_length(), BLI_mmap_get_pointer(), BLI_mmap_open(), BLI_open(), ImBuf::byte_buffer, COLOR_ROLE_DEFAULT_BYTE, colorspace_set_default_role(), ImBufByteBuffer::data, float, IB_rect, IM_MAX_SPACE, IMB_allocImBuf(), imb_mmap_lock(), imb_mmap_unlock(), O_BINARY, ImBuf::x, and ImBuf::y.
Definition at line 41 of file webp.cc.
References ImBuf::byte_buffer, COLOR_ROLE_DEFAULT_BYTE, colorspace_set_default_role(), ImBufByteBuffer::data, ImBuf::ftype, IB_test, IM_MAX_SPACE, imb_addrectImBuf(), IMB_allocImBuf(), imb_is_a_webp(), ImBuf::x, and ImBuf::y.
Definition at line 161 of file webp.cc.
References BLI_fopen(), ImBuf::byte_buffer, ImBufByteBuffer::data, ImBuf::foptions, free(), MEM_freeN(), MEM_mallocN, ImBuf::planes, ImbFormatOptions::quality, ImBuf::x, and ImBuf::y.