Method

VipsImageuhdrsave

Declaration [src]

int
vips_uhdrsave (
  VipsImage* in,
  const char* filename,
  ...
)

Description [src]

Save an image as UltraHDR.

If an image is sRGB and has a gainmap, it will be saved as UltraHDR with no gainmap recomputation.

If the image is scRGB and has a gainmap, a base image will be computed and it will be saved as UltraHDR.

If the image is scRGB and has no gainmap, one will be computed at a gainmap_scale_factor of the base image. This is slow and takes a lot of memory.

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

filename

Type: const char*

File to write to.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
...

Type: 

NULL-terminated list of optional named arguments.

Return value

Type: int

0 on success, -1 on error.