Picasso API  2.2
Functions
XImage Coders Register functions
XImage Extension

Functions

PEXPORT int psx_image_register_operator (const char *type, const ps_byte *signature, size_t sig_len, psx_priority_level level, psx_image_operator*coder)
 Register the image operator.
PEXPORT int psx_image_unregister_operator (psx_image_operator*coder)
 Unregister the image operator.

Function Documentation

int psx_image_register_operator ( const char *  type,
const ps_byte signature,
size_t  sig_len,
psx_priority_level  level,
psx_image_operator coder 
)

Register the image operator.

Parameters:
typeThe image operator short name. (i.e "png" "jpg" "bmp")
signatureThe image signature.
sig_lenThe image signature length.
levelThe image operator priority level.
coderThe pointer to a image_operator object.
Returns:
Result code returned.
See also:
psx_image_unregister_operator

Unregister the image operator.

Parameters:
coderThe image operator which will be unregister.
Returns:
Result code returned.
See also:
psx_image_register_operator