Enumeration

Processing Flags

Set flags on vImage operations to specify processing options.

Declaration

enum : unsigned int {
    ...
};

Overview

You can pass multiple flags to a function by adding the flag values together. For example, to leave alpha unchanged and turn off tiling, you can pass:

kvImageLeaveAlphaUnchanged + kvImageDoNotTile

Three of the flags are mutually exclusive: kvImageCopyInPlace, kvImageBackgroundColorFill, and kvImageEdgeExtend. Never pass more than one of these flag values in the same flag parameter.

When passing flags to a function, do not set values for flags that are not used by the function. If the function requires you to set certain flag values, do so. For example, for the convolution function, you must set exactly one of kvImageCopyInPlace, kvImageBackgroundColorFill, and kvImageEdgeExtend. Otherwise the function may return an error. If you don’t want to set flag values, pass kvImageNoFlags.

Topics

Constants

kvImageNoFlags

A flag that sets the behavior to the default.

kvImageLeaveAlphaUnchanged

A flag that restricts the operation to red, green, and blue channels only.

kvImageDoNotTile

A flag that disables vImage internal tiling routines.

kvImageHighQualityResampling

A flag that uses a higher quality, slower resampling filter for geometry operations.

kvImageGetTempBufferSize

A flag that returns the minimum temporary buffer size for the operation, given the parameters provided.

kvImagePrintDiagnosticsToConsole

A flag that prints a debug message if the operation fails.

kvImageNoAllocate

A flag that prevents vImage from allocating additional storage.

kvImageHDRContent

A flag that uses HDR-aware methods.

kvImageDoNotClamp

A flag that disables clamping in some conversions to floating-point formats.

Edging Modes

kvImageCopyInPlace

A flag that copies the value of the edge pixel in the source to the destination.

kvImageBackgroundColorFill

A flag that uses the background color for missing pixels.

kvImageEdgeExtend

A flag that extends the edges of the image infinitely.

kvImageTruncateKernel

A flag that uses only the part of the kernel that overlaps the image.