Blender  V3.3
Functions
webp.c File Reference
#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)
 
ImBufimb_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))
 

Function Documentation

◆ imb_is_a_webp()

bool imb_is_a_webp ( const unsigned char *  buf,
size_t  size 
)

Definition at line 23 of file webp.c.

References NULL, and size().

Referenced by imb_loadwebp().

◆ imb_loadwebp()

ImBuf* imb_loadwebp ( const unsigned char *  mem,
size_t  size,
int  flags,
char  colorspace[IM_MAX_SPACE] 
)

◆ imb_savewebp()

bool imb_savewebp ( struct ImBuf ibuf,
const char *  name,
int   UNUSEDflags 
)