public abstract class SCameraGifProcessor extends SCameraProcessor
Aggregates series of image data and save to animated GIF.
Modifier and Type | Class and Description |
---|---|
static class |
SCameraGifProcessor.EventCallback
Callback interface used to deliver result image.
|
Modifier and Type | Field and Description |
---|---|
static SCameraProcessorParameter.Key<Integer> |
GIF_FRAME_DURATION
Desired frame duration of the GIF output.
|
static String |
NAME
String name of GIF processor.
|
CAMERA_ID, JPEG_QUALITY, MULTI_INPUT_COUNT_RANGE, NATIVE_PROCESSOR_MSG_DECODING_FAIL, NATIVE_PROCESSOR_MSG_ENCODING_FAIL, NATIVE_PROCESSOR_MSG_PROCESSING_FAIL, NATIVE_PROCESSOR_MSG_UNKNOWN_ERROR, STILL_INPUT_FORMAT, STILL_INPUT_FORMAT_LIST, STILL_OUTPUT_FORMAT, STILL_OUTPUT_FORMAT_LIST, STILL_SIZE, STILL_SIZE_LIST, STREAM_SIZE, STREAM_SIZE_LIST
Modifier and Type | Method and Description |
---|---|
abstract void |
requestMultiProcess(List<Bitmap> data)
Creates an animated GIF from a list of
bitmap . |
abstract void |
setEventCallback(SCameraGifProcessor.EventCallback callback,
Handler handler)
Registers a callback to be invoked for result.
|
close, deinitialize, getParameters, initialize, setParameters
public static final String NAME
public static final SCameraProcessorParameter.Key<Integer> GIF_FRAME_DURATION
public abstract void requestMultiProcess(List<Bitmap> data)
Creates an animated GIF from a list of bitmap
.
An bitmap in the list must have the dimension of SCameraProcessor.STILL_SIZE
and the format of ARGB_8888
.
requestMultiProcess(List)
until the EventCallback has returned.
Otherwise, RuntimeException will be thrown.data
- List of Image
instance that the animated GIf created from.IllegalStateException
- If SCameraProcessor.initialize()
is not called.IllegalArgumentException
- If data is null. Or if data is invalid.RuntimeException
- If fail to start processing.public abstract void setEventCallback(SCameraGifProcessor.EventCallback callback, Handler handler)
callback
- a callback object that receives the result.handler
- the handler on which the callback should be invoked, or null
to use the current thread's looper
.IllegalStateException
- If SCameraProcessor.initialize()
is not called.IllegalArgumentException
- If no handler is given and the calling thread has no looper.Copyright © Samsung Electronics, Co., Ltd. All rights reserved.