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:
Functions
DescriptionA VipsRegion is a small part of an image. You use regions to read pixels out of images without having to have the whole image in memory at once. A region can be a memory buffer, part of a memory-mapped file, part of some other image, or part of some other region. Regions must be created, used and freed all within the same thread, since
they can reference private per-thread caches. VIPS sanity-checks region
ownership in various places, so you are likely to see There is API to transfer ownership of regions between threads, but hopefully this is only needed within VIPS, so we don't expose it. Hopefully. Functionsvips_region_new ()VipsRegion *
vips_region_new (
Create a region. VipsRegion s start out empty, you need to call
See also: [constructor] vips_region_buffer ()int vips_region_buffer ( The region is transformed so that at least [method] vips_region_image ()int vips_region_image ( The region is transformed so that at least [method] vips_region_region ()int vips_region_region ( Make
Performs all clipping necessary to ensure that If the region we attach to is moved or destroyed, we can be left with dangling pointers! If the region we attach to is on another image, the two images must have the same sizeof( pel ). [method] Parameters
vips_region_equalsregion ()int vips_region_equalsregion ( Do two regions point to the same piece of image? ie.
vips_region_position ()int vips_region_position ( Set the position of a region. This only affects reg->valid, ie. the way pixels are addressed, not reg->data, the pixels which are addressed. Clip against the size of the image. Do not allow negative positions, or positions outside the image. [method] vips_region_paint ()void vips_region_paint ( Paints For int images,
See also: [method] vips_region_paint_pel ()void vips_region_paint_pel ( Paints
See also: [method] vips_region_black ()void
vips_region_black (
Paints 0 into the valid part of See also: [method] vips_region_copy ()void vips_region_copy ( Copy from one region to another. Copy area See also: Parameters
vips_region_shrink_method ()int vips_region_shrink_method ( Write the pixels
See also: Parameters
vips_region_shrink ()int vips_region_shrink ( Write the pixels This is a compatibility stub that just calls See also: [skip] Parameters
vips_region_prepare ()int vips_region_prepare ( vips_region_prepare() fills vips_region_prepare() runs in-line, that is, computation is done by the calling thread, no new threads are involved, and computation blocks until the pixels are ready. Use See also: [method] vips_region_prepare_to ()int vips_region_prepare_to ( Like Unlike Also unlike See also: [method] Parameters
vips_region_fetch ()VipsPel * vips_region_fetch ( Generate an area of pixels and return a copy. The result must be freed
with This is equivalent to [method] vips_region_invalidate ()void
vips_region_invalidate (
Mark a region as containing invalid pixels. Calling this function means
that the next time This is faster than calling See also: [method] VIPS_REGION_ADDR()#define VIPS_REGION_ADDR( R, X, Y ) This macro returns a pointer to a pixel in a region. The ( If DEBUG is defined, you get a version that checks bounds for you. See also: VIPS_REGION_ADDR_TOPLEFT()#define VIPS_REGION_ADDR_TOPLEFT( R ) ((R)->data) This macro returns a pointer to the top-left pixel in the VipsRegion, that
is, the pixel at ( See also: |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0048 ]-- |