public abstract class SCameraHdrProcessor extends SCameraProcessor
HDR processor takes input image list with different exposure values and combines them to output an image with greater dynamic range of luminosity.
Image list size should be within the range of SCameraProcessor.MULTI_INPUT_COUNT_RANGE
.
An input image to this processor should be taken under different exposure, from under to overexposure (-2.0 --> +2.0); this can be achieved by
SCaptureRequest.CONTROL_AE_EXPOSURE_COMPENSATION
or SCaptureRequest.SENSOR_EXPOSURE_TIME
.
Initialization key | |
---|---|
Key | Meaning |
SCameraProcessor.STILL_SIZE | Still image size |
SCameraProcessor.STILL_INPUT_FORMAT | Still image input format |
SCameraProcessor.STILL_OUTPUT_FORMAT | Still image output format |
Modifier and Type | Class and Description |
---|---|
static class |
SCameraHdrProcessor.EventCallback
Callback interface used to deliver result image.
|
Modifier and Type | Field and Description |
---|---|
static String |
NAME
String name of HDR processor.
|
CAMERA_ID, JPEG_ORIENTATION, 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<Image> data)
Apply High-dynamic range image processing on a list of images.
|
abstract void |
setEventCallback(SCameraHdrProcessor.EventCallback callback,
Handler handler)
Registers a callback to be invoked for result.
|
close, deinitialize, getParameters, initialize, setParameters
public static final String NAME
public abstract void requestMultiProcess(List<Image> data)
Apply High-dynamic range image processing on a list of images.
List should hold max count
input image
with AE bias value
of -2.0 / 0.0 / +2.0.
Otherwise, dynamic range of luminosity will be reduced or inadequate on the final result image.
requestMultiProcess(List)
until the EventCallback has returned.
Otherwise, RuntimeException will be thrown.data
- List of Image
instance which the high dynamic range effect will be applied to.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(SCameraHdrProcessor.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.