Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2de9018

Browse files
committed
remove auto_tiles option
just turn it on by default see libvips#4191 (comment)
1 parent 10ed3b7 commit 2de9018

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

ChangeLog

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
- add "unpack_complex" option to vips_getpoint()
2626
- add deflate compression level setting to tiffsave [ruven]
2727
- add "smart_deblock" to webpsave [goodusername123]
28-
- add "auto_tiles" to heifsave [lovell]
2928

3029
4/10/24 8.15.5
3130

libvips/foreign/foreign.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,7 +2366,6 @@ vips_heifload_source(VipsSource *source, VipsImage **out, ...)
23662366
* * @effort: %gint, encoding effort
23672367
* * @subsample_mode: #VipsForeignSubsample, chroma subsampling mode
23682368
* * @encoder: #VipsForeignHeifEncoder, select encoder to use
2369-
* * @auto_tiles: %gboolean, determine optimum tile count
23702369
*
23712370
* Write a VIPS image to a file in HEIF format.
23722371
*
@@ -2390,11 +2389,6 @@ vips_heifload_source(VipsSource *source, VipsImage **out, ...)
23902389
*
23912390
* Use @encoder to set the encode library to use, e.g. aom, SVT-AV1, rav1e etc.
23922391
*
2393-
* When using the aom encoder, set @auto_tiles to determine the optimum
2394-
* number of tiles based on dimensions and available threads. This can
2395-
* improve multi-core utilisation and/or reduce peak memory consumption
2396-
* at the expense of slightly increased file size.
2397-
*
23982392
* See also: vips_image_write_to_file(), vips_heifload().
23992393
*
24002394
* Returns: 0 on success, -1 on error.
@@ -2428,7 +2422,6 @@ vips_heifsave(VipsImage *in, const char *filename, ...)
24282422
* * @effort: %gint, encoding effort
24292423
* * @subsample_mode: #VipsForeignSubsample, chroma subsampling mode
24302424
* * @encoder: #VipsForeignHeifEncoder, select encoder to use
2431-
* * @auto_tiles: %gboolean, determine optimum tile count
24322425
*
24332426
* As vips_heifsave(), but save to a memory buffer.
24342427
*
@@ -2483,7 +2476,6 @@ vips_heifsave_buffer(VipsImage *in, void **buf, size_t *len, ...)
24832476
* * @effort: %gint, encoding effort
24842477
* * @subsample_mode: #VipsForeignSubsample, chroma subsampling mode
24852478
* * @encoder: #VipsForeignHeifEncoder, select encoder to use
2486-
* * @auto_tiles: %gboolean, determine optimum tile count
24872479
*
24882480
* As vips_heifsave(), but save to a target.
24892481
*

libvips/foreign/heifsave.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ typedef struct _VipsForeignSaveHeif {
130130
*/
131131
int speed;
132132

133-
/* Auto tiles (currently aom only).
134-
*/
135-
gboolean auto_tiles;
136-
137133
} VipsForeignSaveHeif;
138134

139135
typedef VipsForeignSaveClass VipsForeignSaveHeifClass;
@@ -652,8 +648,11 @@ vips_foreign_save_heif_build(VipsObject *object)
652648
}
653649
#endif /*HAVE_HEIF_ENCODER_PARAMETER_GET_VALID_INTEGER_VALUES*/
654650

651+
/* Try to enable auto_tiles. This can make AVIF encoding a lot faster,
652+
* with only a very small increase in file size.
653+
*/
655654
error = heif_encoder_set_parameter_boolean(heif->encoder,
656-
"auto-tiles", heif->auto_tiles);
655+
"auto-tiles", TRUE);
657656
if (error.code &&
658657
error.subcode != heif_suberror_Unsupported_parameter) {
659658
vips__heif_error(&error);
@@ -819,13 +818,6 @@ vips_foreign_save_heif_class_init(VipsForeignSaveHeifClass *class)
819818
G_STRUCT_OFFSET(VipsForeignSaveHeif, selected_encoder),
820819
VIPS_TYPE_FOREIGN_HEIF_ENCODER,
821820
VIPS_FOREIGN_HEIF_ENCODER_AUTO);
822-
823-
VIPS_ARG_BOOL(class, "auto_tiles", 19,
824-
_("Auto-tiles"),
825-
_("Determine optimum tile count"),
826-
VIPS_ARGUMENT_OPTIONAL_INPUT,
827-
G_STRUCT_OFFSET(VipsForeignSaveHeif, auto_tiles),
828-
FALSE);
829821
}
830822

831823
static void

0 commit comments

Comments
 (0)