aboutsummaryrefslogtreecommitdiff
path: root/plugins/3a/aiq/aiq_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/3a/aiq/aiq_wrapper.cpp')
-rw-r--r--plugins/3a/aiq/aiq_wrapper.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/3a/aiq/aiq_wrapper.cpp b/plugins/3a/aiq/aiq_wrapper.cpp
index e6feb20..c09d9df 100644
--- a/plugins/3a/aiq/aiq_wrapper.cpp
+++ b/plugins/3a/aiq/aiq_wrapper.cpp
@@ -24,7 +24,7 @@
#include "x3a_statistics_queue.h"
#include "aiq3a_utils.h"
#include "x3a_result_factory.h"
-#include "x3a_analyze_tuner.h"
+#include "iq/x3a_analyze_tuner.h"
#define DEFAULT_AIQ_CPF_FILE "/etc/atomisp/imx185.cpf"
@@ -112,22 +112,22 @@ XCam3AAiqContext::setup_stats_pool (uint32_t bit_depth)
VideoBufferInfo info;
info.init (XCAM_PIX_FMT_SGRBG16, _video_width, _video_height);
- _stats_pool = new X3aStatisticsQueue;
- XCAM_ASSERT (_stats_pool.ptr ());
+ SmartPtr<X3aStatisticsQueue> pool = new X3aStatisticsQueue;
+ XCAM_ASSERT (pool.ptr ());
- _stats_pool->set_bit_depth (bit_depth);
+ pool->set_bit_depth (bit_depth);
XCAM_FAIL_RETURN (
WARNING,
- _stats_pool->set_video_info (info),
+ pool->set_video_info (info),
false,
"3a stats set video info failed");
-
- if (!_stats_pool->reserve (6)) {
+ if (!pool->reserve (6)) {
XCAM_LOG_WARNING ("init_3a_stats_pool failed to reserve stats buffer.");
return false;
}
+ _stats_pool = pool;
return true;
}