diff options
author | Wind Yuan <feng.yuan@intel.com> | 2017-08-23 17:13:42 +0800 |
---|---|---|
committer | windyuan <feng.yuan@intel.com> | 2017-08-23 17:22:01 +0800 |
commit | 0995e53b9064a563b343a9bdcd50ecf88bf84bec (patch) | |
tree | 69cfede9e288a3ec3528ecdcc0fd14fa3ddfa1b8 /capi | |
parent | 4a86c6496e6c5e58bb1ed57ec5d9937b35255dd2 (diff) | |
download | libxcam-0995e53b9064a563b343a9bdcd50ecf88bf84bec.tar.gz |
module: add stitcher module interface
* module/interface, new feature interface entry.
* add interface/stitcher.h as stitching module interface.
Signed-off-by: Wind Yuan <feng.yuan@intel.com>
Diffstat (limited to 'capi')
-rw-r--r-- | capi/context_priv.cpp | 6 | ||||
-rw-r--r-- | capi/context_priv.h | 7 |
2 files changed, 4 insertions, 9 deletions
diff --git a/capi/context_priv.cpp b/capi/context_priv.cpp index c9488b9..e613357 100644 --- a/capi/context_priv.cpp +++ b/capi/context_priv.cpp @@ -210,13 +210,13 @@ StitchContext::create_handler (SmartPtr<CLContext> &context) return NULL; } - CLStitchResMode res_mode = CLStitchRes1080P; + StitchResMode res_mode = StitchRes1080P; if (_res_mode == StitchRes4K) - res_mode = CLStitchRes4K; + res_mode = StitchRes4K; SmartPtr<CLImage360Stitch> image_360 = create_image_360_stitch (context, _need_seam, _scale_mode, - _fisheye_map, _need_lsc, res_mode).dynamic_cast_ptr<CLImage360Stitch> (); + _fisheye_map, _need_lsc, res_mode).dynamic_cast_ptr<CLImage360Stitch> (); XCAM_FAIL_RETURN (ERROR, image_360.ptr (), NULL, "create image stitch handler failed"); image_360->set_output_size (sttch_width, sttch_height); XCAM_LOG_INFO ("stitch output size width:%d height:%d", sttch_width, sttch_height); diff --git a/capi/context_priv.h b/capi/context_priv.h index bf45cc2..6745e43 100644 --- a/capi/context_priv.h +++ b/capi/context_priv.h @@ -26,6 +26,7 @@ #include <ocl/cl_image_handler.h> #include <ocl/cl_context.h> #include <ocl/cl_blender.h> +#include <interface/stitcher.h> using namespace XCam; @@ -159,12 +160,6 @@ class StitchContext : public ContextBase { public: - enum StitchResMode { - StitchRes1080P = 0, - StitchRes4K - }; - -public: StitchContext () : ContextBase (HandleTypeStitch) , _need_seam (false) |