public abstract class SCameraLowLightProcessor extends SCameraProcessor
Low Light Processor takes input image list with same exposure values and multi exposure de-noise effect is applied to them to produce the output image
Image list size should be within range of SCameraProcessor.MULTI_INPUT_COUNT_RANGE
.
Input Images for this processor can be easily obtained via captureBurst()
.
This processor ONLY apply de-noise effect; no brightness control over image is applied. Brightness control via SCaptureRequest.CONTROL_AE_EXPOSURE_COMPENSATION
,
SCaptureRequest.SENSOR_EXPOSURE_TIME
is advised. For the best result in a dark scene, minimized motion blur is requested. This can be achieved by SCaptureRequest.SENSOR_SENSITIVITY
or
SCaptureRequest.LENS_OPTICAL_STABILIZATION_MODE
.
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 |
SCameraLowLightProcessor.EventCallback
Callback interface used to deliver result image.
|
Modifier and Type | Field and Description |
---|---|
static String |
NAME
String name of low light 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 multi exposure de-noise on
burst captured input images with same exposure value. |
abstract void |
setEventCallback(SCameraLowLightProcessor.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)
burst captured
input images
with same exposure value.
List size should be within a range of SCameraProcessor.MULTI_INPUT_COUNT_RANGE
.
After calling this method, you must not call another requestMultiProcess(List)
until the EventCallback has returned.
Otherwise RuntimeException will be throwndata
- List of Image
instance which the multi exposure de-noise 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(SCameraLowLightProcessor.EventCallback callback, Handler handler)
callback
- a callback object that receive a 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.