|
Blender V4.5
|
#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 "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 *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) |
| 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 75 of file format_webp.cc.
References BLI_mmap_free(), BLI_mmap_get_length(), BLI_mmap_get_pointer(), BLI_mmap_open(), BLI_open(), ImBuf::byte_buffer, data, ImBufByteBuffer::data, IB_byte_data, IMB_allocImBuf(), IMB_freeImBuf(), imb_mmap_lock(), imb_mmap_unlock(), O_BINARY, ImBuf::x, and ImBuf::y.
| ImBuf * imb_loadwebp | ( | const uchar * | mem, |
| size_t | size, | ||
| int | flags, | ||
| ImFileColorSpace & | r_colorspace ) |
Definition at line 40 of file format_webp.cc.
References ImBuf::byte_buffer, ImBufByteBuffer::data, ImBuf::ftype, IB_test, IMB_alloc_byte_pixels(), IMB_allocImBuf(), imb_is_a_webp(), size(), ImBuf::x, and ImBuf::y.
| bool imb_savewebp | ( | ImBuf * | ibuf, |
| const char * | filepath, | ||
| int | flags ) |
Definition at line 159 of file format_webp.cc.
References BLI_fopen(), ImBuf::byte_buffer, ImBufByteBuffer::data, ImBuf::foptions, free(), i, IMB_get_pixel_count(), MEM_freeN(), MEM_malloc_arrayN(), ImBuf::planes, ImbFormatOptions::quality, ImBuf::x, and ImBuf::y.