Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/libvips/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
FunctionsObject Hierarchy GObject
╰── VipsObject
╰── VipsConnection
├── VipsSource
│ ╰── VipsSourceCustom
╰── VipsTarget
╰── VipsTargetCustom
DescriptionA VipsConnection is a source or sink of bytes for something like jpeg
loading, see for example It can be connected to a network socket, for example, or perhaps a node.js stream, or to an area of memory. Subclass to add other input sources. Use VipsSourceCustom and VipsTargetCustom to make a source or target with action signals for ::read, ::write and ::seek. Functionsvips_source_new_from_descriptor ()VipsSource *
vips_source_new_from_descriptor (
Create an source attached to a file descriptor. vips_source_new_from_file ()VipsSource *
vips_source_new_from_file (
Create an source attached to a file. vips_source_new_from_blob ()VipsSource *
vips_source_new_from_blob (
Create a source attached to an area of memory. vips_source_new_from_memory ()VipsSource * vips_source_new_from_memory ( Create a source attached to an area of memory. You must not free vips_source_new_from_options ()VipsSource *
vips_source_new_from_options (
Create a source from an option string. vips_source_minimise ()void
vips_source_minimise (
Minimise the source. As many resources as can be safely removed are
removed. Use Loaders should call this in response to the minimise signal on their output image. vips_source_unminimise ()int
vips_source_unminimise (
Restore the source after minimisation. This is called at the start of every source method, so loaders should not usually need this. See also: vips_source_decode ()int
vips_source_decode (
Signal the end of header read and the start of the pixel decode phase. After this, you can no longer seek on this source. Loaders should call this at the end of header read. See also: vips_source_read ()gint64 vips_source_read ( Read up to Arguments exactly as read(2). vips_source_is_mappable ()gboolean
vips_source_is_mappable (
Some sources can be efficiently mapped into memory.
You can still use vips_source_map ()const void * vips_source_map ( Map the source entirely into memory and return a pointer to the
start. If This operation can take a long time. Use The pointer is valid for as long as vips_source_map_blob ()VipsBlob *
vips_source_map_blob (
Just like vips_source_seek ()gint64 vips_source_seek ( Move the file read position. You can't call this after pixel decode starts. The arguments are exactly as lseek(2). vips_source_rewind ()int
vips_source_rewind (
Rewind the source to the start. You can't do this after pixel decode phase starts. vips_source_sniff_at_most ()size_t vips_source_sniff_at_most ( vips_source_sniff ()unsigned char * vips_source_sniff ( Return a pointer to the first few bytes of the file. If the file is too short, return NULL. vips_source_length ()gint64
vips_source_length (
Return the length in bytes of the source. Unseekable sources, for example pipes, will have to be read entirely into memory before the length can be found, so this operation can take a long time. vips_source_custom_new ()VipsSourceCustom *
vips_source_custom_new (
Create a VipsSourceCustom. Attach signals to implement read and seek. vips_target_new_to_descriptor ()VipsTarget *
vips_target_new_to_descriptor (
Create a target attached to a file descriptor.
See also: vips_target_new_to_file ()VipsTarget *
vips_target_new_to_file (
Create a target attached to a file. vips_target_new_to_memory ()VipsTarget *
vips_target_new_to_memory (
Create a target which will write to a memory area. Read from See also: vips_target_write ()int vips_target_write ( Write vips_target_finish ()void
vips_target_finish (
Call this at the end of write to make the target do any cleaning up. You can call it many times. After a target has been finished, further writes will do nothing. vips_target_steal ()unsigned char * vips_target_steal ( Memory targets only (see You must free the returned pointer with The data is NOT automatically null-terminated. vips_target_steal_text ()char *
vips_target_steal_text (
As vips_target_putc ()int vips_target_putc ( Write a single character vips_target_writes ()int vips_target_writes ( Write a null-terminated string to vips_target_writef ()int vips_target_writef ( Format the string and write to vips_target_write_amp ()int vips_target_write_amp ( Write XML rules:
vips_target_custom_new ()VipsTargetCustom *
vips_target_custom_new (
Create a VipsTargetCustom. Attach signals to implement write and finish. Property DetailsThe
|
source_custom |
the source being operated on |
|
buffer |
|
|
size |
|
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“seek” signalgint64 user_function (VipsSourceCustom *source_custom, gint64 offset, gint whence, gpointer user_data)
This signal is emitted to seek the source. The handler should change the source position appropriately.
The handler for an unseekable source should always return -1.
source_custom |
the source being operated on |
|
offset |
|
|
whence |
|
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“finish” signalvoid user_function (VipsTargetCustom *target_custom, gpointer user_data)
This signal is emitted at the end of write. The target should do any finishing necessary.
target_custom |
the target being operated on |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“write” signalgint64 user_function (VipsTargetCustom *target_custom, gpointer data, gint64 length, gpointer user_data)
This signal is emitted to write bytes to the target.
target_custom |
the target being operated on |
|
data |
|
|
length |
|
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]-- |