Simple Graphics Library 1.0.0.0
Runtime-independent image processing primitives
Loading...
Searching...
No Matches
Result and opaque object types

Types shared by the public API. More...

Typedefs

typedef struct sgl_nearest_neighbor_lookup_table sgl_nearest_neighbor_lookup_t
 Opaque nearest-neighbor resize lookup table.
 
typedef struct sgl_bilinear_lookup_table sgl_bilinear_lookup_t
 Opaque bilinear resize lookup table.
 
typedef struct sgl_bicubic_lookup_table sgl_bicubic_lookup_t
 Opaque bicubic resize lookup table.
 
typedef struct sgl_rotate_lookup_table sgl_rotate_lookup_t
 Opaque nearest-neighbor rotation lookup table.
 
typedef struct sgl_queue sgl_queue_t
 Opaque fixed-capacity queue.
 
typedef struct sgl_threadpool sgl_threadpool_t
 Opaque synchronous worker-thread pool.
 
typedef void(* sgl_threadpool_routine_t) (void *current, void *cookie)
 Processes one queue entry submitted to a thread pool.
 

Enumerations

enum  sgl_result_t {
  SGL_SUCCESS , SGL_FAILURE , SGL_ERROR_INVALID_ARGUMENTS , SGL_ERROR_MEMORY_ALLOCATION ,
  SGL_ERROR_MISSMATCHED_CAPACITY , SGL_ERROR_NOT_SUPPORTED , SGL_QUEUE_IS_EMPTY , SGL_QUEUE_IS_NOT_EMPTY ,
  SGL_QUEUE_IS_FULL , SGL_QUEUE_IS_NOT_FULL
}
 Result codes returned by SGL operations. More...
 

Detailed Description

Types shared by the public API.

Typedef Documentation

◆ sgl_threadpool_routine_t

typedef void(* sgl_threadpool_routine_t) (void *current, void *cookie)

Processes one queue entry submitted to a thread pool.

Parameters
[in,out]currentEntry dequeued from the operation queue.
[in,out]cookieCaller context passed to the attach function.

The callback can run on the submitting thread or on any worker thread. Concurrent invocations must therefore synchronize shared cookie state.

Definition at line 100 of file sgl-core.h.

Enumeration Type Documentation

◆ sgl_result_t

Result codes returned by SGL operations.

Enumerator
SGL_SUCCESS 

Operation completed successfully.

SGL_FAILURE 

Operation failed without a more specific code.

SGL_ERROR_INVALID_ARGUMENTS 

One or more arguments violate the API contract.

SGL_ERROR_MEMORY_ALLOCATION 

The configured SGL memory pool could not satisfy an allocation.

SGL_ERROR_MISSMATCHED_CAPACITY 

Destination queue capacity is smaller than the source capacity.

SGL_ERROR_NOT_SUPPORTED 

Requested feature is unavailable in this build.

SGL_QUEUE_IS_EMPTY 

Queue contains no entries.

SGL_QUEUE_IS_NOT_EMPTY 

Queue contains at least one entry.

SGL_QUEUE_IS_FULL 

Queue has reached its fixed capacity.

SGL_QUEUE_IS_NOT_FULL 

Queue can accept another entry.

Definition at line 67 of file sgl-core.h.