mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 13:38:16 -08:00
Vips: add VipsVectorSetEnabled
This commit is contained in:
parent
d0fb333ce4
commit
921a05687c
2 changed files with 12 additions and 0 deletions
11
vips.go
11
vips.go
|
|
@ -147,6 +147,17 @@ func VipsCacheDropAll() {
|
|||
C.vips_cache_drop_all()
|
||||
}
|
||||
|
||||
// VipsVectorSetEnabled enables or disables SIMD vector instructions. This can give speed-up,
|
||||
// but can also be unstable on some systems and versions.
|
||||
func VipsVectorSetEnabled(enable bool) {
|
||||
flag := 0
|
||||
if enable {
|
||||
flag = 1
|
||||
}
|
||||
|
||||
C.vips_vector_set_enabled(flag)
|
||||
}
|
||||
|
||||
// VipsDebugInfo outputs to stdout libvips collected data. Useful for debugging.
|
||||
func VipsDebugInfo() {
|
||||
C.im__print_all()
|
||||
|
|
|
|||
1
vips.h
1
vips.h
|
|
@ -3,6 +3,7 @@
|
|||
#include <vips/vips.h>
|
||||
#include <vips/foreign.h>
|
||||
#include <vips/vips7compat.h>
|
||||
#include <vips/vector.h>
|
||||
|
||||
/**
|
||||
* Starting libvips 7.41, VIPS_ANGLE_x has been renamed to VIPS_ANGLE_Dx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue