cl bayer: enable normalization and black level correction
* Shift 10bit bayer to 16bits to normalize image process
* Support black level correction on default value
Signed-off-by: Wind Yuan <feng.yuan@intel.com>
diff --git a/xcore/cl_image_processor.cpp b/xcore/cl_image_processor.cpp
index bc37387..eac91f8 100644
--- a/xcore/cl_image_processor.cpp
+++ b/xcore/cl_image_processor.cpp
@@ -23,6 +23,8 @@
#include "cl_image_handler.h"
#include "drm_display.h"
#include "cl_demo_handler.h"
+#include "cl_blc_handler.h"
+
namespace XCam {
@@ -115,6 +117,15 @@
"CLImageProcessor create demo handler failed");
add_handler (demo_handler);
+ SmartPtr<CLImageHandler> blc_handler;
+ blc_handler = create_cl_blc_image_handler (_context);
+ XCAM_FAIL_RETURN (
+ WARNING,
+ blc_handler.ptr (),
+ XCAM_RETURN_ERROR_CL,
+ "CLImageProcessor create blc handler failed");
+ add_handler (blc_handler);
+
return XCAM_RETURN_NO_ERROR;
}