Method

VipsImageuhdrsave_buffer

Declaration [src]

int
vips_uhdrsave_buffer (
  VipsImage* in,
  void** buf,
  size_t* len,
  ...
)

Description [src]

As vips_uhdrsave(), but save to a memory buffer.

Optional arguments

  • Q: gint, quality factor
  • gainmap_scale_factor: gint, scale factor of base image to gainmap
  • optimize_coding: gboolean, compute optimal Huffman coding tables
  • interlace: gboolean, generate an interlaced (progressive) jpeg
  • subsample_mode: VipsForeignSubsample, select chroma subsample mode
  • trellis_quant: gboolean, apply trellis quantization
  • overshoot_deringing: gboolean, apply overshoot de-ringing
  • optimize_scans: gboolean, split DCT coefficients into separate scans
  • quant_table: gint, use predefined quantization table index
  • restart_interval: gint, add restart markers every specified number of mcu

This method is not directly available to language bindings.

Parameters

buf

Type: An array of guint8

Return output buffer here.

The length of the array is specified in the len argument.
The data is owned by the caller of the method.
len

Type: size_t*

Return output length here.

The data is owned by the caller of the method.
...

Type: 

NULL-terminated list of optional named arguments.

Return value

Type: int

0 on success, -1 on error.