Lines Matching refs:pyr_layer
72 PyramidResource pyr_layer[XCAM_SOFT_PYRAMID_MAX_LEVEL]; member in XCam::SoftBlenderPriv::BlenderPrivConfig
219 if (pyr_layer[i].scale_task[SoftBlender::Idx0].ptr ()) { in stop()
220 pyr_layer[i].scale_task[SoftBlender::Idx0]->stop (); in stop()
221 pyr_layer[i].scale_task[SoftBlender::Idx0].release (); in stop()
223 if (pyr_layer[i].scale_task[SoftBlender::Idx1].ptr ()) { in stop()
224 pyr_layer[i].scale_task[SoftBlender::Idx1]->stop (); in stop()
225 pyr_layer[i].scale_task[SoftBlender::Idx1].release (); in stop()
227 if (pyr_layer[i].lap_task[SoftBlender::Idx0].ptr ()) { in stop()
228 pyr_layer[i].lap_task[SoftBlender::Idx0]->stop (); in stop()
229 pyr_layer[i].lap_task[SoftBlender::Idx0].release (); in stop()
231 if (pyr_layer[i].lap_task[SoftBlender::Idx1].ptr ()) { in stop()
232 pyr_layer[i].lap_task[SoftBlender::Idx1]->stop (); in stop()
233 pyr_layer[i].lap_task[SoftBlender::Idx0].release (); in stop()
235 if (pyr_layer[i].recon_task.ptr ()) { in stop()
236 pyr_layer[i].recon_task->stop (); in stop()
237 pyr_layer[i].recon_task.release (); in stop()
240 if (pyr_layer[i].overlap_pool.ptr ()) { in stop()
241 pyr_layer[i].overlap_pool->stop (); in stop()
302 pyr_layer[level].coef_mask = new UcharImage (width, height); in scale_down_masks()
303 XCAM_ASSERT (pyr_layer[level].coef_mask.ptr ()); in scale_down_masks()
309 args->in_luma = pyr_layer[level - 1].coef_mask; in scale_down_masks()
311 args->out_luma = pyr_layer[level].coef_mask; in scale_down_masks()
318 dump_soft (pyr_layer[level].coef_mask, "mask", (int32_t)level); in scale_down_masks()
330 SmartPtr<SoftWorker> worker = pyr_layer[level].scale_task[idx]; in start_scaler()
333 XCAM_ASSERT (pyr_layer[level].overlap_pool.ptr ()); in start_scaler()
334 SmartPtr<VideoBuffer> out_buf = pyr_layer[level].overlap_pool->get_buffer (); in start_scaler()
395 XCAM_ASSERT (pyr_layer[level - 1].overlap_pool.ptr ()); in start_lap_task()
396 out_buf = pyr_layer[level - 1].overlap_pool->get_buffer (); in start_lap_task()
412 SmartPtr<SoftWorker> worker = pyr_layer[level].lap_task[idx]; in start_lap_task()
445 args = new BlendTask::Args (param, pyr_layer[last_level].coef_mask); in start_blend_task()
465 XCAM_ASSERT (pyr_layer[last_level].overlap_pool.ptr ()); in start_blend_task()
466 SmartPtr<VideoBuffer> out_buf = pyr_layer[last_level].overlap_pool->get_buffer (); in start_blend_task()
522 out_buf = pyr_layer[level - 1].overlap_pool->get_buffer (); in start_reconstruct_task()
526 args->mask = pyr_layer[level - 1].coef_mask; in start_reconstruct_task()
533 SmartPtr<SoftWorker> worker = pyr_layer[level].recon_task; in start_reconstruct_task()
560 MapReconsArgs::iterator i = pyr_layer[level].recons_args.find (param.ptr ()); in start_reconstruct_task_by_gauss()
561 if (i == pyr_layer[level].recons_args.end ()) { in start_reconstruct_task_by_gauss()
564 pyr_layer[level].recons_args.insert (std::make_pair((void*)param.ptr (), args)); in start_reconstruct_task_by_gauss()
576 pyr_layer[level].recons_args.erase (i); in start_reconstruct_task_by_gauss()
592 MapReconsArgs::iterator i = pyr_layer[level].recons_args.find (param.ptr ()); in start_reconstruct_task_by_lap()
593 if (i == pyr_layer[level].recons_args.end ()) { in start_reconstruct_task_by_lap()
596 pyr_layer[level].recons_args.insert (std::make_pair((void*)param.ptr (), args)); in start_reconstruct_task_by_lap()
609 pyr_layer[level].recons_args.erase (i); in start_reconstruct_task_by_lap()
706 _priv_config->pyr_layer[i].overlap_pool = new SoftVideoBufAllocator (overlap_info); in configure_resource()
707 XCAM_ASSERT (_priv_config->pyr_layer[i].overlap_pool.ptr ()); in configure_resource()
709 …ERROR, _priv_config->pyr_layer[i].overlap_pool->reserve (OVERLAP_POOL_SIZE), XCAM_RETURN_ERROR_MEM, in configure_resource()
718 … _priv_config->pyr_layer[i].scale_task[SoftBlender::Idx0] = new GaussDownScale (gauss_scale_cb); in configure_resource()
719 XCAM_ASSERT (_priv_config->pyr_layer[i].scale_task[SoftBlender::Idx0].ptr ()); in configure_resource()
720 … _priv_config->pyr_layer[i].scale_task[SoftBlender::Idx1] = new GaussDownScale (gauss_scale_cb); in configure_resource()
721 XCAM_ASSERT (_priv_config->pyr_layer[i].scale_task[SoftBlender::Idx1].ptr ()); in configure_resource()
722 _priv_config->pyr_layer[i].lap_task[SoftBlender::Idx0] = new LaplaceTask (lap_cb); in configure_resource()
723 XCAM_ASSERT (_priv_config->pyr_layer[i].lap_task[SoftBlender::Idx0].ptr ()); in configure_resource()
724 _priv_config->pyr_layer[i].lap_task[SoftBlender::Idx1] = new LaplaceTask (lap_cb); in configure_resource()
725 XCAM_ASSERT (_priv_config->pyr_layer[i].lap_task[SoftBlender::Idx1].ptr ()); in configure_resource()
726 _priv_config->pyr_layer[i].recon_task = new ReconstructTask (reconst_cb); in configure_resource()
727 XCAM_ASSERT (_priv_config->pyr_layer[i].recon_task.ptr ()); in configure_resource()