/* * cl_wavelet_denoise_handler.h - CL wavelet denoise handler * * Copyright (c) 2015 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Author: Wei Zong */ #ifndef XCAM_CL_WAVELET_DENOISE_HANLDER_H #define XCAM_CL_WAVELET_DENOISE_HANLDER_H #include #include #include namespace XCam { class CLWaveletDenoiseImageHandler; class CLWaveletDenoiseImageKernel : public CLImageKernel { private: public: explicit CLWaveletDenoiseImageKernel ( const SmartPtr &context, const char *name, SmartPtr &handler, uint32_t channel, uint32_t layer); virtual ~CLWaveletDenoiseImageKernel () { } protected: virtual XCamReturn prepare_arguments ( CLArgList &args, CLWorkSize &work_size); private: uint32_t _channel; uint32_t _current_layer; SmartPtr _handler; }; class CLWaveletDenoiseImageHandler : public CLImageHandler { public: explicit CLWaveletDenoiseImageHandler (const SmartPtr &context, const char *name); bool set_denoise_config (const XCam3aResultWaveletNoiseReduction& config); XCam3aResultWaveletNoiseReduction& get_denoise_config () { return _config; }; SmartPtr &get_details_image () { return _details_image; }; SmartPtr &get_approx_image () { return _approx_image; }; protected: virtual XCamReturn prepare_output_buf (SmartPtr &input, SmartPtr &output); private: XCam3aResultWaveletNoiseReduction _config; SmartPtr _details_image; SmartPtr _approx_image; }; SmartPtr create_cl_wavelet_denoise_image_handler (const SmartPtr &context, uint32_t channel); }; #endif //XCAM_CL_WAVELET_DENOISE_HANLDER_H