Blender
V3.3
|
#include <stdio.h>
#include <stdlib.h>
#include <webp/decode.h>
#include <webp/encode.h>
#include "BLI_fileops.h"
#include "BLI_utildefines.h"
#include "IMB_colormanagement.h"
#include "IMB_colormanagement_intern.h"
#include "IMB_filetype.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "MEM_guardedalloc.h"
Go to the source code of this file.
Functions | |
bool | imb_is_a_webp (const unsigned char *buf, size_t size) |
ImBuf * | imb_loadwebp (const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE]) |
bool | imb_savewebp (struct ImBuf *ibuf, const char *name, int UNUSED(flags)) |
bool imb_is_a_webp | ( | const unsigned char * | buf, |
size_t | size | ||
) |
ImBuf* imb_loadwebp | ( | const unsigned char * | mem, |
size_t | size, | ||
int | flags, | ||
char | colorspace[IM_MAX_SPACE] | ||
) |
Definition at line 31 of file webp.c.
References COLOR_ROLE_DEFAULT_BYTE, colorspace_set_default_role(), ImBuf::ftype, IB_test, IM_MAX_SPACE, imb_addrectImBuf(), IMB_allocImBuf(), imb_is_a_webp(), NULL, ImBuf::rect, size(), ImBuf::x, and ImBuf::y.
Definition at line 70 of file webp.c.
References BLI_fopen(), ImBuf::foptions, free(), MEM_freeN, MEM_mallocN, NULL, num_pixels, ImBuf::planes, ImbFormatOptions::quality, ImBuf::rect, ImBuf::x, and ImBuf::y.