Module sys

Source
Expand description

Raw imaged bindings

Structs§

Image
Stores image data with associated metadata
ImageMeta
ImageMeta is used to store image metadata with information about the image shape and type
Imaged
Image database
ImagedHandle
A handle is used to refer to an imgd image in an Imaged database
ImagedIter
Iterator over imgd files in an Imaged database
Pixel
4-channel floating point pixel
__dirstream
dirent
stat
timespec

Enums§

ImageColor
Image colors, specifies the image color type
ImageKind
Image kinds, specifies the image data base type
ImagedStatus
Status types: IMAGED_OK implies the function executed successfully, while any other response signifies failure

Functions§

imageAdjustGamma
Adjust image gamma
imageAlloc
Create a new image and copy data if provided
imageAt
Get a pointer to the data at the position (x, y)
imageClone
Duplicate an existing image
imageColorName
Get name of color
imageColorNumChannels
Get number of channels in a color
imageConsume
imageConvert
Convert source image to the specified type, returning the new converted image
imageConvertACES0
imageConvertACES0ToXYZ
imageConvertACES1
imageConvertACES1ToXYZ
imageConvertInPlace
Convert source image to the specified type
imageConvertTo
Convert source image to the format specified by the destination image
imageDataNumBytes
Get the number of bytes contained in an image’s data component
imageEachPixel
imageEachPixel2
imageFree
Free allocated image
imageGetNewPixel
Return pixel at position (x, y)
imageGetPixel
Get pixel at position (x, y)
imageIndex
Get the data offset at the position (x, y)
imageIsValidType
Returns true if the kind/bits create a valid image type
imageMake
Create a new image and take ownership of an existing buffer
imageMetaInit
imageMetaNumPixels
Get the number of pixels in an image
imageMetaTotalBytes
Get the number of bytes in an image
imageNew
Create a new image with the given metadata
imageNewLike
Create a new image with the same size and type as the provided image
imageNewWithData
Create a new image from an existing buffer
imageParseColorAndType
Parse color and type names
imagePixelBytes
Get the number of bytes in a pixel for the given image
imageRAWUseAutoBrightness
imageRAWUseCameraWhiteBalance
imageRead
Read an image from disk, the resulting image will be converted to match color/kind/bits if needed
imageReadDefault
Read an image from disk, using the default format
imageReadRAW
Read and process RAW image
imageReadRAWNoProcess
Read RAW image without any processing, this will be a grayscale image
imageResize
Resize image to the given size, returns a new image
imageResizeTo
Resize source image to size specified by destination image
imageScale
Scale an image using the given factors, returns a new image
imageSetPixel
Set pixel at position (x, y)
imageTypeName
Get name of type
imageWrite
Write an image to disk
imagedClose
Close an imaged context
imagedDestroy
Destroy an imaged store, removing all contents from disk
imagedError
Convert ImagedStatus to an error message
imagedGet
Get a key
imagedHandleClose
Release ImagedHandle resources including all memory and file descriptors
imagedHandleInit
Initialize an new handle
imagedHasKey
Returns true when there is a value associated with the given key
imagedIsValidFile
Returns true when the specified file is an valid imgd file
imagedIterFree
Free iterator
imagedIterNew
Create a new iterator
imagedIterNext
Get next image
imagedIterNextKey
Get next key
imagedIterReset
imagedKeyIsLocked
Returns true when an image is locked
imagedOpen
Open a new imaged context
imagedPrintError
Dump ImagedStatus error message to stderr
imagedRemove
&Remove the value associated with the provided key
imagedResetLocks
Remove all image locks
imagedSet
Set a key
imagedStat
Get filesystem information about a key
imagedStringPrintf
Utility for creating new strings
pixelAdd
Pixel addition
pixelAddF
Pixel/float addition
pixelClamp
Ensures pixel values are between 0 and 1
pixelDiv
Pixel division
pixelDivF
Pixel/float division
pixelEmpty
Create a new empty pixel
pixelEq
Pixel equality
pixelEqF
Pixel equality against a single value
pixelMul
Pixel multiplication
pixelMulF
Pixel/float multiplication
pixelNew
Create a new 4-channel pixel
pixelNew1
Create a new 1-channel pixel
pixelNew3
Create a new 3-channel pixel
pixelSub
Pixel subtraction
pixelSubF
Pixel/float subtraction
pixelSum
Sum of all pixel channels

Type Aliases§

DIR
__blkcnt_t
__blksize_t
__dev_t
__gid_t
__ino_t
__m128
__mode_t
__nlink_t
__off_t
__ssize_t
__syscall_slong_t
__time_t
__uid_t
__uint8_t
__uint64_t
imageParallelFn
size_t
ssize_t