void hf_specific_commit_or_reset (stack_struct *stack) { hf_wrapper_struct *hfw; // printf("HF_SPECIFIC_COMMIT_OR_RESET 1 on %p\n", stack->commit_data); if (stack->commit_data) { hfw = (hf_wrapper_struct *) stack->commit_data; // printf("HF_SPECIFIC_COMMIT_OR_RESET 2 on %p: hf_buf= %p\n",hfw,hfw->hf_struct->hf_buf); if (hfw->hf_options->img && hfw->hf_options->img->set_fn) (*hfw->hf_options->img->set_fn) (hfw->hf_options->img); set_render_buffer (hfw->hf_options->render_str, hfw->hf_struct->hf_buf, hfw->hf_struct->max_x,hfw->hf_struct->max_y); hf_backup (hfw->hf_struct); } }
void DenoisingTask::run_denoising(RenderTile *tile) { RenderTile rtiles[10]; rtiles[4] = *tile; functions.map_neighbor_tiles(rtiles); set_render_buffer(rtiles); setup_denoising_buffer(); prefilter_shadowing(); prefilter_features(); prefilter_color(); construct_transform(); reconstruct(); functions.unmap_neighbor_tiles(rtiles); }