blob: e6a2cef618ae6bbea207ee59481057419b2756fe [file] [log] [blame]
/*
**
** Copyright 2013, Samsung Electronics Co. LTD
**
** 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.
*/
#ifndef EXYNOS_CAMERA_FRAME_REPROCESSING_FACTORY_REMOSAIC_H
#define EXYNOS_CAMERA_FRAME_REPROCESSING_FACTORY_REMOSAIC_H
#include "ExynosCameraFrameFactory.h"
namespace android {
class ExynosCameraFrameReprocessingFactoryRemosaic : public ExynosCameraFrameFactory {
public:
ExynosCameraFrameReprocessingFactoryRemosaic()
{
m_init();
}
ExynosCameraFrameReprocessingFactoryRemosaic(int cameraId, ExynosCamera1Parameters *param) : ExynosCameraFrameFactory(cameraId, param)
{
m_init();
strncpy(m_name, "ReprocessingFactory", EXYNOS_CAMERA_NAME_STR_SIZE - 1);
}
virtual ~ExynosCameraFrameReprocessingFactoryRemosaic();
virtual status_t create(bool active = true);
virtual status_t initPipes(void);
virtual status_t preparePipes(void);
virtual status_t startPipes(void);
virtual status_t startSensor3AAPipe(void);
virtual status_t stopPipes(void);
virtual status_t startInitialThreads(void);
virtual status_t setStopFlag(void);
virtual ExynosCameraFrameSP_sptr_t createNewFrame(ExynosCameraFrameSP_sptr_t refFrame = NULL);
protected:
virtual status_t m_setupConfig(void);
virtual status_t m_constructReprocessingPipes(void);
virtual status_t m_setupRequestFlags(void);
virtual status_t m_fillNodeGroupInfo(ExynosCameraFrameSP_sptr_t frame, ExynosCameraFrameSP_sptr_t refFrame = NULL);
private:
void m_init(void);
private:
bool m_flagHWFCEnabled;
bool m_flagTPU1Enabled;
};
}; /* namespace android */
#endif