ImageUtils is a container of functions for synchronous and asyncronous image loading.
More...
#include <ImageUtils.h>
ImageUtils is a container of functions for synchronous and asyncronous image loading.
Enumerator |
---|
FormatNone |
|
FormatPng |
|
FormatJpeg |
|
static Ref<PixelData> omega::ImageUtils::decode |
( |
void * |
data, |
|
|
size_t |
size, |
|
|
const String & |
bufName = "<no_name>" |
|
) |
| |
|
static |
Load an image from a memory buffer.
Encodes an image using the specified format. Returns a byte array containing the encoded image data.
static int omega::ImageUtils::getImageLoaderThreads |
( |
| ) |
|
|
inlinestatic |
Gets the number of image loading threads.
static int omega::ImageUtils::getLoadPreallocatedBlock |
( |
| ) |
|
|
inlinestatic |
static int omega::ImageUtils::getNumPreallocatedBlocks |
( |
| ) |
|
|
static |
static void* omega::ImageUtils::getPreallocatedBlock |
( |
int |
blockIndex | ) |
|
|
static |
static size_t omega::ImageUtils::getPreallocatedBlockSize |
( |
| ) |
|
|
inlinestatic |
static void omega::ImageUtils::internalDispose |
( |
| ) |
|
|
static |
static void omega::ImageUtils::internalInitialize |
( |
| ) |
|
|
static |
static Ref<PixelData> omega::ImageUtils::loadImage |
( |
const String & |
filename, |
|
|
bool |
hasFullPath = false |
|
) |
| |
|
static |
Load an image from a file.
Load image from a file (async)
static Ref<PixelData> omega::ImageUtils::loadImageFromStream |
( |
std::istream & |
fin, |
|
|
const String & |
streamName |
|
) |
| |
|
static |
Load an image from a stream.
static bool omega::ImageUtils::preallocateBlocks |
( |
size_t |
size, |
|
|
int |
numBlocks |
|
) |
| |
|
static |
Preallocated memory management.
Preallocate memory blocks for image loading and processing.
- Returns
- true if preallocation succeeded. False otherwise.
static void omega::ImageUtils::setImageLoaderThreads |
( |
int |
num | ) |
|
|
inlinestatic |
Sets the number if image loading threads. Must be called before the fist call to loadImageAsync.
static void omega::ImageUtils::setLoadPreallocatedBlock |
( |
int |
blockId | ) |
|
|
static |
Specified which preallocated block to use when loading images.
Pass -1 to disable preallocated block usage on image loading.
static void omega::ImageUtils::setVerbose |
( |
bool |
value | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: