php-vips

Interpolate extends VipsObject
in package

This class holds a pointer to a VipsInterpolate (the libvips base class for interpolators) and manages argument introspection and operation call.

Tags
category

Images

author

John Cupitt jcupitt@gmail.com

copyright

2016 John Cupitt

license

https://opensource.org/licenses/MIT MIT

link
https://github.com/libvips/php-vips

Table of Contents

Properties

$check_max_stack_size  : bool
libvips executes FFI callbacks off the main thread and this confuses the stack limit checks available since PHP 8.3.0. We need to check if `zend.max_allowed_stack_size` is set to `-1`.

Methods

__clone()  : mixed
__construct()  : mixed
__destruct()  : mixed
get()  : mixed
getArgumentDescription()  : string
getBlurb()  : string
getDescription()  : string
getPspec()  : CData|null
getType()  : int
newFromName()  : Interpolate
Make an interpolator from a name.
printAll()  : void
ref()  : void
set()  : void
setString()  : bool
signalConnect()  : void
Connect to a signal on this object.
unref()  : void
unrefOutputs()  : void
getMarshaler()  : Closure|null

Properties

$check_max_stack_size

libvips executes FFI callbacks off the main thread and this confuses the stack limit checks available since PHP 8.3.0. We need to check if `zend.max_allowed_stack_size` is set to `-1`.

private static bool $check_max_stack_size = true

See: https://github.com/libvips/php-vips/pull/237.

Methods

__construct()

public __construct(CData $pointer) : mixed
Parameters
$pointer : CData

__destruct()

public __destruct() : mixed

getArgumentDescription()

public getArgumentDescription(string $name) : string
Parameters
$name : string
Return values
string

getBlurb()

public getBlurb(string $name) : string
Parameters
$name : string
Return values
string

getDescription()

public getDescription() : string
Return values
string

getPspec()

public getPspec(string $name) : CData|null
Parameters
$name : string
Return values
CData|null

getType()

public getType(string $name) : int
Parameters
$name : string
Return values
int

newFromName()

Make an interpolator from a name.

public static newFromName(string $name) : Interpolate
Parameters
$name : string

Name of the interpolator.

Possible interpolators are:

  • 'nearest': Use nearest neighbour interpolation.
  • 'bicubic': Use bicubic interpolation.
  • 'bilinear': Use bilinear interpolation (the default).
  • 'nohalo': Use Nohalo interpolation.
  • 'lbb': Use LBB interpolation.
  • 'vsqbs': Use the VSQBS interpolation.
Tags
throws
Exception

If unable to make a new interpolator from $name.

Return values
Interpolate

The interpolator.

set()

public set(string $name, mixed $value) : void
Parameters
$name : string
$value : mixed
Tags
throws
Exception

setString()

public setString(string $string_options) : bool
Parameters
$string_options : string
Return values
bool

signalConnect()

Connect to a signal on this object.

public signalConnect(string $name, callable $callback) : void

The callback will be triggered every time this signal is issued on this instance.

Parameters
$name : string
$callback : callable
Tags
throws
Exception

getMarshaler()

private static getMarshaler(string $name, callable $callback) : Closure|null
Parameters
$name : string
$callback : callable
Return values
Closure|null

        
On this page

Search results