Lines Matching refs:Args
44 typedef std::map<void*, SmartPtr<BlendTask::Args>> MapBlendArgs;
45 typedef std::map<void*, SmartPtr<ReconstructTask::Args>> MapReconsArgs;
101 const SmartPtr<GaussDownScale::Args> &scale_args);
115 XCamReturn start_reconstruct_task (const SmartPtr<ReconstructTask::Args> &args, const uint32_t level);
305 SmartPtr<GaussScaleGray::Args> args = new GaussScaleGray::Args;
307 args->in_luma = orig_mask;
309 args->in_luma = pyr_layer[level - 1].coef_mask;
311 args->out_luma = pyr_layer[level].coef_mask;
313 WorkSize size ((args->out_luma->get_width () + 1) / 2, (args->out_luma->get_height () + 1) / 2);
316 XCamReturn ret = worker->work (args);
340 SmartPtr<GaussDownScale::Args> args = new GaussDownScale::Args (param, level, idx, in_buf, out_buf);
350 args->in_luma = new UcharImage (
353 args->in_uv = new Uchar2Image (
357 args->in_luma = new UcharImage (in_buf, 0);
358 args->in_uv = new Uchar2Image (in_buf, 1);
360 args->out_luma = new UcharImage (out_buf, 0);
361 args->out_uv = new Uchar2Image (out_buf, 1);
368 xcam_ceil (args->out_luma->get_width (), work_unit.value[0]) / work_unit.value[0],
369 xcam_ceil (args->out_luma->get_height (), work_unit.value[1]) / work_unit.value[1]);
377 return worker->work (args);
384 const SmartPtr<GaussDownScale::Args> &scale_args)
404 SmartPtr<LaplaceTask::Args> args = new LaplaceTask::Args (param, level, idx, out_buf);
405 args->orig_luma = scale_args->in_luma;//new UcharImage (orig, 0);
406 args->orig_uv = scale_args->in_uv; //new Uchar2Image (orig, 1);
407 args->gauss_luma = new UcharImage (gauss, 0);
408 args->gauss_uv = new Uchar2Image (gauss, 1);
409 args->out_luma = new UcharImage (out_buf, 0);
410 args->out_uv = new Uchar2Image (out_buf, 1);
418 xcam_ceil (args->out_luma->get_width (), work_unit.value[0]) / work_unit.value[0],
419 xcam_ceil (args->out_luma->get_height (), work_unit.value[1]) / work_unit.value[1]);
428 return worker->work (args);
438 SmartPtr<BlendTask::Args> args;
445 args = new BlendTask::Args (param, pyr_layer[last_level].coef_mask);
446 XCAM_ASSERT (args.ptr ());
447 blend_args.insert (std::make_pair((void*)param.ptr (), args));
448 XCAM_LOG_DEBUG ("soft_blender:%s init blender args", XCAM_STR (_blender->get_name ()));
450 args = (*i).second;
452 args->in_luma[idx] = new UcharImage (buf, 0);
453 args->in_uv[idx] = new Uchar2Image (buf, 1);
454 XCAM_ASSERT (args->in_luma[idx].ptr () && args->in_uv[idx].ptr ());
456 if (!args->in_luma[SoftBlender::Idx0].ptr () || !args->in_luma[SoftBlender::Idx1].ptr ())
462 XCAM_ASSERT (args.ptr ());
463 XCAM_ASSERT (args->in_luma[SoftBlender::Idx0]->get_width () == args->in_luma[SoftBlender::Idx1]->get_width ());
471 args->out_luma = new UcharImage (out_buf, 0);
472 args->out_uv = new Uchar2Image (out_buf, 1);
473 args->out_buf = out_buf;
482 xcam_ceil (args->out_luma->get_width (), work_unit.value[0]) / work_unit.value[0],
483 xcam_ceil (args->out_luma->get_height (), work_unit.value[1]) / work_unit.value[1]);
491 return worker->work (args);
496 const SmartPtr<ReconstructTask::Args> &args, const uint32_t level)
498 XCAM_ASSERT (args.ptr ());
499 XCAM_ASSERT (args->lap_luma[SoftBlender::Idx0].ptr () && args->lap_luma[SoftBlender::Idx1].ptr () && args->gauss_luma.ptr ());
500 XCAM_ASSERT (args->lap_luma[SoftBlender::Idx0]->get_width () == args->lap_luma[SoftBlender::Idx1]->get_width ());
503 out_buf = args->get_param ()->out_buf;
505 args->mask = orig_mask;
515 args->out_luma = new UcharImage (
518 args->out_uv = new Uchar2Image (
526 args->mask = pyr_layer[level - 1].coef_mask;
527 args->out_luma = new UcharImage (out_buf, 0);
528 args->out_uv = new Uchar2Image (out_buf, 1);
531 args->out_buf = out_buf;
539 xcam_ceil (args->out_luma->get_width (), work_unit.value[0]) / work_unit.value[0],
540 xcam_ceil (args->out_luma->get_height (), work_unit.value[1]) / work_unit.value[1]);
548 return worker->work (args);
557 SmartPtr<ReconstructTask::Args> args;
562 args = new ReconstructTask::Args (param, level);
563 XCAM_ASSERT (args.ptr ());
564 pyr_layer[level].recons_args.insert (std::make_pair((void*)param.ptr (), args));
567 args = (*i).second;
569 args->gauss_luma = new UcharImage (gauss, 0);
570 args->gauss_uv = new Uchar2Image (gauss, 1);
571 XCAM_ASSERT (args->gauss_luma.ptr () && args->gauss_uv.ptr ());
573 if (!args->lap_luma[SoftBlender::Idx0].ptr () || !args->lap_luma[SoftBlender::Idx1].ptr ())
579 return start_reconstruct_task (args, level);
589 SmartPtr<ReconstructTask::Args> args;
594 args = new ReconstructTask::Args (param, level);
595 XCAM_ASSERT (args.ptr ());
596 pyr_layer[level].recons_args.insert (std::make_pair((void*)param.ptr (), args));
599 args = (*i).second;
601 args->lap_luma[idx] = new UcharImage (lap, 0);
602 args->lap_uv[idx] = new Uchar2Image (lap, 1);
603 XCAM_ASSERT (args->lap_luma[idx].ptr () && args->lap_uv[idx].ptr ());
605 if (!args->gauss_luma.ptr () || !args->lap_luma[SoftBlender::Idx0].ptr () ||
606 !args->lap_luma[SoftBlender::Idx1].ptr ())
612 return start_reconstruct_task (args, level);
743 SmartPtr<GaussDownScale::Args> args = base.dynamic_cast_ptr<GaussDownScale::Args> ();
744 XCAM_ASSERT (args.ptr ());
745 const SmartPtr<ImageHandler::Parameters> param = args->get_param ();
746 uint32_t level = args->level;
747 BufIdx idx = args->idx;
756 dump_level_buf (args->out_buf, "gauss-scale", level, idx);
758 ret = _priv_config->start_lap_task (param, level, idx, args);//args->in_buf, args->out_buf);
764 ret = _priv_config->start_blend_task (param, args->out_buf, idx);
766 ret = _priv_config->start_scaler (param, args->out_buf, next_level, idx);
781 SmartPtr<LaplaceTask::Args> args = base.dynamic_cast_ptr<LaplaceTask::Args> ();
782 XCAM_ASSERT (args.ptr ());
783 const SmartPtr<ImageHandler::Parameters> param = args->get_param ();
785 uint32_t level = args->level;
786 BufIdx idx = args->idx;
792 dump_level_buf (args->out_buf, "lap", level, idx);
794 ret = _priv_config->start_reconstruct_task_by_lap (param, args->out_buf, level, idx);
808 SmartPtr<BlendTask::Args> args = base.dynamic_cast_ptr<BlendTask::Args> ();
809 XCAM_ASSERT (args.ptr ());
810 const SmartPtr<ImageHandler::Parameters> param = args->get_param ();
816 dump_buf (args->out_buf, "blend-last");
817 ret = _priv_config->start_reconstruct_task_by_gauss (param, args->out_buf, _priv_config->pyr_levels - 1);
831 SmartPtr<ReconstructTask::Args> args = base.dynamic_cast_ptr<ReconstructTask::Args> ();
832 XCAM_ASSERT (args.ptr ());
833 const SmartPtr<ImageHandler::Parameters> param = args->get_param ();
835 uint32_t level = args->level;
841 dump_level_buf (args->out_buf, "reconstruct", level, 0);
848 ret = _priv_config->start_reconstruct_task_by_gauss (param, args->out_buf, level - 1);