Function imageflow::imageflow_context_error_code
[−]
[src]
#[no_mangle]pub unsafe extern fn imageflow_context_error_code(context: *mut Context) -> i32
Returns the numeric code associated with the error.
Error codes
- 0 - No error condition.
- 10 - Out Of Memory condition (malloc/calloc/realloc failed).
- 20 - I/O error
- 30 - Invalid internal state (assertion failed; you found a bug).
- 40 - Error: Not implemented. (Feature not implemented).
- 50 - Invalid argument provided
- 51 - Null argument provided
- 52 - Invalid dimensions
- 53 - Unsupported pixel format
- 54 - Item does not exist
- 60 - Image decoding failed
- 61 - Image encoding failed
- 70 - Graph invalid
- 71 - Graph is cyclic
- 72 - Invalid inputs to node
- 73 - Maximum graph passes exceeded
- 1024 - Other error; something else happened
- 1025 through 2147483647 are reserved for user-defined errors
Behavior is undefined if context
is a null or invalid ptr; segfault likely.