public class WorkDispatcher
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
THREAD_COUNT
The number of preview threads based on CPU count*4.
|
| Constructor and Description |
|---|
WorkDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setThreadsPerCPU(int threads)
Reconfigure the engine
WARNING: Calling this will stop any current processing!!
|
static void |
shutdownNow()
Shut down this engine and threads
|
static java.util.concurrent.Future<WorkContainer> |
submitPreviewWork(java.awt.Image original,
DitherStrategy dither)
Similar to submit work (the same processing procedure is followed) however
no SCR output is provided, the default resolution of 256x192 is used and
the dither can be specified.
|
static java.util.concurrent.Future<WorkContainer> |
submitWork(java.awt.Image original,
boolean scrRequired)
Submit an image to be pre processed and processed by a single thread
The resulting Future
|
public static int THREAD_COUNT
public static void shutdownNow()
public static void setThreadsPerCPU(int threads)
threads - public static java.util.concurrent.Future<WorkContainer> submitWork(java.awt.Image original, boolean scrRequired)
original - scrRequired - public static java.util.concurrent.Future<WorkContainer> submitPreviewWork(java.awt.Image original, DitherStrategy dither)
original - dither -