Method
VipsImagewebpsave_buffer
Declaration [src]
int
vips_webpsave_buffer (
VipsImage* in,
void** buf,
size_t* len,
...
)
Description [src]
As vips_webpsave(), but save to a memory buffer.
The address of the buffer is returned in buf, the length of the buffer in
len. You are responsible for freeing the buffer with g_free() when you
are done with it.
::: tip “Optional arguments”
* Q: gint, quality factor
* lossless: gboolean, enables lossless compression
* preset: VipsForeignWebpPreset, choose lossy compression preset
* exact: gboolean, preserves color values from transparent pixels
* smart_subsample: gboolean, enables high quality chroma subsampling
* smart_deblock: gboolean, enables auto-adjusting of the deblocking
filter
* near_lossless: gboolean, preprocess in lossless mode (controlled
by Q)
* alpha_q: gint, set alpha quality in lossless mode
* effort: gint, level of CPU effort to reduce file size
* target_size: gint, desired target size in bytes
* passes: gint, number of entropy-analysis passes
* min_size: gboolean, minimise size
* mixed: gboolean, allow both lossy and lossless encoding
* kmin: gint, minimum number of frames between keyframes
* kmax: gint, maximum number of frames between keyframes
::: seealso
vips_webpsave().
Parameters
buf |
An array of guint8 |
Return output buffer here. |
|
| The argument will be set by the function. | |
The length of the array is specified in the len argument. | |
| The instance takes ownership of the data, and is responsible for freeing it. | |
len |
size_t* |
Return output length here. |
|
| The argument will be set by the function. | |
| The instance takes ownership of the data, and is responsible for freeing it. | |
... |
none |
|