![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "develop/openmp_maths.h"
Include dependency graph for src/develop/noise_generator.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Typedefs | |
| typedef enum dt_noise_distribution_t | dt_noise_distribution_t |
Enumerations | |
| enum | dt_noise_distribution_t { DT_NOISE_UNIFORM = 0 , DT_NOISE_GAUSSIAN = 1 , DT_NOISE_POISSONIAN = 2 } |
Functions | |
| static uint32_t | splitmix32 (const uint64_t seed) |
| static uint32_t | rol32 (const uint32_t x, const int k) |
| static float | xoshiro128plus (uint32_t state[4]) |
| __OMP_DECLARE_SIMD__ (uniform(sigma) aligned(state:64)) static inline float uniform_noise(const float mu | |
| return (r *r - sigma *sigma)/4.f - 3.f/8.f | |
| __OMP_DECLARE_SIMD__ (uniform(distribution, param) aligned(state:64)) static inline float dt_noise_generator(const dt_noise_distribution_t distribution | |
Variables | |
| const float | sigma |
| const float uint32_t | state [4] |
| const float const int | flip |
| const float | u2 = xoshiro128plus(state) |
| const float | noise |
| return noise *sigma | mu |
| const float | r = noise * sigma + 2.0f * sqrtf(fmaxf(mu + 3.f / 8.f, 0.0f)) |
| const float const float | param |
| typedef enum dt_noise_distribution_t dt_noise_distribution_t |
| Enumerator | |
|---|---|
| DT_NOISE_UNIFORM | |
| DT_NOISE_GAUSSIAN | |
| DT_NOISE_POISSONIAN | |
Definition at line 24 of file src/develop/noise_generator.h.
| __OMP_DECLARE_SIMD__ | ( | uniform(distribution, param) aligned(state:64) | ) | const |
| __OMP_DECLARE_SIMD__ | ( | uniform(sigma) aligned(state:64) | ) | const |
|
inlinestatic |
Definition at line 44 of file src/develop/noise_generator.h.
Referenced by xoshiro128plus().
|
inlinestatic |
Definition at line 33 of file src/develop/noise_generator.h.
|
inlinestatic |
Definition at line 51 of file src/develop/noise_generator.h.
| const float const float const int flip |
Definition at line 78 of file src/develop/noise_generator.h.
Referenced by dt_guides_draw(), dt_image_cache_write_release(), dt_image_get_orientation(), dt_lightroom_import(), gaussian_noise_simd(), guide_laplacians(), hvflip_callback(), inpaint_noise(), modify_roi_out(), and poisson_noise_simd().
| const float mu |
Definition at line 89 of file src/develop/noise_generator.h.
Referenced by _node_base_rgb(), dt_noise_generator_simd(), gaussian_noise_simd(), lmmse_demosaic(), poisson_noise_simd(), and uniform_noise_simd().
| const float noise |
Definition at line 87 of file src/develop/noise_generator.h.
Referenced by apply_auto_black(), apply_auto_black(), apply_auto_dynamic_range(), apply_auto_white_point_source(), apply_autotune(), apply_autotune(), compute_channel_noise(), dwt_denoise(), gaussian_noise_simd(), guide_laplacians(), init_presets(), inpaint_noise(), legacy_params(), make_noise(), poisson_noise_simd(), process(), process(), uniform_noise_simd(), wavelet_denoise(), and wavelet_denoise_xtrans().
| const float const float param |
Definition at line 108 of file src/develop/noise_generator.h.
Referenced by _dt_sigsegv_handler(), _lib_location_place_widget_new(), _lib_location_result_item_activated(), _set_current_thread_realtime_best_effort(), dt_bauhaus_combobox_from_params(), dt_bauhaus_slider_from_params(), dt_bauhaus_toggle_from_params(), dt_dng_opcode_process_opcode_list_2(), dt_noise_generator_simd(), dt_pthread_create(), and dtgtk_reset_label_new().
Definition at line 101 of file src/develop/noise_generator.h.
Referenced by _act_folders_relocate(), _act_tag_rename(), _act_tags_remove(), _area_resized_callback(), _area_resized_callback(), _compute_effective_height(), _draw_samples(), _ellipse_draw_handles(), _ellipse_events_mouse_moved(), _free_row(), _get_map_extent(), _group_get_mask(), _hm_show_merge_report_popup(), _init_image_pin(), _init_place_pin(), _ioporder_draw_rounded_rect(), _paint_RGB_slider_stop(), _picker_project_opponent_to_display_rgb(), _points_to_transform(), _polygon_crop_to_roi(), _rows_to_imgids(), _save_clut_callback(), _selected_rows(), _selected_tagids(), _start_new_shape(), _update_RGB_colors(), _update_RGB_slider_stop(), _xy2matrix(), area_resized(), area_resized(), blur_vertical_16wide(), blur_vertical_16wide_Kahan(), blur_vertical_1wide(), blur_vertical_1wide_Kahan(), blur_vertical_4wide(), blur_vertical_4wide_Kahan(), build_tonecurve(), clampnan(), commit_params(), create_global_distortion_map(), create_lens_kernel(), define_patches(), dt_bauhaus_draw_quad(), dt_bauhaus_slider_set_stop(), dt_cache_arena_alloc(), dt_cache_arena_stats(), dt_colorrings_fill_lut_local_field(), dt_colorrings_fill_lut_sparse_local_field(), dt_draw_cairo_to_gdk_pixbuf(), dt_drawlayer_io_load_flat_rgba(), dt_imageio_open_rawspeed(), dt_imageio_open_rawspeed_sraw(), dt_interpolation_compute_sample(), dt_iop_channelmixer_shared_paint_row_sliders(), dt_masks_dynbuf_harvest(), dt_mipmap_cache_get_filename(), dt_pixelpipe_get_pipe_name(), dtgtk_cairo_paint_altered(), dtgtk_cairo_paint_label(), dtgtk_cairo_paint_label_flower(), dtgtk_cairo_paint_label_sel(), dtgtk_cairo_paint_masks_difference(), dtgtk_cairo_paint_masks_drawn_and_parametric(), dtgtk_cairo_paint_masks_exclusion(), dtgtk_cairo_paint_masks_gradient(), dtgtk_cairo_paint_masks_intersection(), dtgtk_cairo_paint_masks_parametric(), dtgtk_cairo_paint_masks_union(), dtgtk_cairo_paint_modulegroup_basics(), dtgtk_cairo_paint_star(), dtgtk_cairo_paint_unaltered(), dtgtk_cairo_paint_unratestar(), dtgtk_cairo_paint_waveform_overlaid(), dtgtk_cairo_paint_waveform_scope(), get_collect(), gui_init(), init_column_sums(), interpolate_color_xtrans(), mix_warps(), pair_min(), poisson_noise_simd(), polar_decomposition(), ptr_array_find_sorted(), ptr_array_insert_sorted(), QR_dec(), ransac(), read_curveset(), read_ppm_header(), rect_improve(), rgb2hsl(), ri_ini(), scrolled(), PermutohedralLattice< D, VD >::slice(), sycc420_to_rgb(), sycc422_to_rgb(), sycc444_to_rgb(), sycc_to_rgb(), thinplate_kernel(), thinplate_match(), tree_range_visible(), write_image(), Ych_to_Yrg(), Yrg_to_LMS(), and Yrg_to_Ych().
| const float sigma |
Definition at line 71 of file src/develop/noise_generator.h.
Referenced by __attribute__(), __attribute__(), _masks_blur_13x13_coeff(), _masks_blur_5x5_coeff(), _retouch_blur(), _retouch_blur_cl(), apply_curve(), apply_toneequalizer(), build_interpolation_matrix(), commit_params(), compute_channels_factors(), compute_correction_lut(), compute_lut_correction(), curve_scalar(), dt_develop_blend_process(), dt_develop_blend_process_cl(), dt_focuspeaking(), dt_gaussian_init(), dt_gaussian_init_cl(), dt_local_laplacian_init_cl(), dt_masks_blur_9x9(), dt_masks_blur_9x9_coeff(), eigf_variance_analysis(), eigf_variance_analysis_no_mask(), equivalent_sigma_at_step(), fast_eigf_surface_blur(), gaussian_kernel(), gaussian_noise_simd(), gaussian_sampler(), get_manifolds(), gui_post_expose(), guide_laplacians(), init_presets(), inpaint_noise(), local_laplacian(), local_laplacian_internal(), normalize_laplacian(), pixel_correction(), poisson_noise_simd(), process(), process(), process_cl(), process_common_cleanup(), process_wavelets(), process_wavelets_cl(), reduce_artifacts(), scrolled(), tiling_callback(), and uniform_noise_simd().
| const float const int uint32_t state |
Definition at line 71 of file src/develop/noise_generator.h.
Referenced by _advance_smudge_pickup_state(), _apply_gui_button_pressed_state(), _apply_quadratic_dab_smoothing(), _apply_runtime_event(), _blendop_masks_get_inverse_icon(), _blendop_masks_get_op_icon(), _blendop_masks_group_button_pressed(), _blendop_masks_group_ctx_menu(), _blendop_masks_group_operation_callback(), _brush_events_button_pressed(), _brush_events_button_released(), _brush_events_mouse_scrolled(), _build_raw_segment_cubic_arclen_lut(), _build_runtime_schedule(), _button_draw(), _circle_events_button_pressed(), _circle_events_mouse_scrolled(), _color_picker_callback_button_press(), _compute_hud_brush_state(), _copy_toggled_callback(), _darkroom_locked_main_valid_for_zoom(), _darkroom_prepare_image_surface(), _darkroom_reset_expose_state(), _dev_module_update_multishow(), _dispatch_selected_shortcut(), _dispatch_selected_shortcut_idle(), _draw_brush_hud(), _drawlayer_modal_wait_tick(), _ellipse_events_button_pressed(), _ellipse_events_mouse_scrolled(), _emit_dab(), _emit_first_sample_if_needed(), _enforce_dab_center_spacing(), _ensure_pending_dabs(), _ensure_raw_inputs(), _event_cursor_draw(), _flush_pending_initial_if_needed(), _focus_toggle_callback(), _get_bounded_inside(), _get_combobox_max_width(), _gradient_events_button_pressed(), _gradient_events_mouse_scrolled(), _gradient_get_mask(), _gradient_get_mask_roi(), _gradient_slider_draw(), _gradient_slider_get_preferred_height(), _gradient_slider_get_preferred_width(), _group_get_mask_roi(), _icon_draw(), _lib_masks_update_item(), _margins_retrieve(), _paint_build_dab_cb(), _paint_compact_raw_input_queue(), _paint_input_starts_new_stroke(), _paint_process_one_raw_input(), _paint_reset_path_runtime_state(), _perform_runtime_commit_sequence(), _polygon_events_button_pressed(), _polygon_events_mouse_scrolled(), _polygon_get_mask(), _polygon_get_mask_roi(), _queue_action_from_shortcut(), _release_runtime_source(), _render_preview_surface(), _resizable_area_free(), _resizable_area_get_size(), _resizable_area_resize(), _resizable_scroll_apply(), _resizable_scroll_handle_get_size(), _resizable_scroll_handle_resize(), _rt_set_worker_state(), _runtime_private(), _runtime_private_const(), _sample_raw_segment_cubic_arclen(), _sample_raw_segment_cubic_param(), _search_entry_button_pressed(), _search_entry_changed(), _search_entry_key_pressed(), _search_entry_restore_space_idle(), _set_iter_name(), _shortcut_edited(), _shortcut_search_button_press(), _shortcut_search_destroy(), _shortcut_search_move_selection(), _shortcut_search_recent_insert_prefix(), _shortcut_search_recent_match_selected(), _shortcut_search_recent_sort_func(), _shortcut_search_row_activated(), _shortcut_search_selection_changed(), _simulate_color(), _slider_add_step(), _sync_buffer_state(), _sync_runtime_state_from_inputs(), _textnotes_load_job_state(), _thumbnail_btn_draw(), _togglebutton_draw(), _tree_reveal_func(), _update_foreach(), _update_manager_information(), _update_realtime_state(), _widget_auto_connect_buffer(), _widget_auto_connect_model(), _widget_auto_disconnect_buffer(), _widget_auto_disconnect_model(), _widget_auto_height_free(), _widget_draw(), _widget_set_size(), bucket_next(), bucket_next(), bucket_next(), button_pressed(), button_pressed(), button_pressed(), button_pressed(), button_released(), button_released(), color_picker_apply(), dt_accels_disable(), dt_accels_search(), dt_bauhaus_popup_draw(), dt_control_button_pressed(), dt_control_button_released(), dt_control_job_get_state(), dt_control_job_set_state(), dt_control_job_wait(), dt_dev_modules_update_multishow(), dt_dev_pixelpipe_cache_put_pinned_image(), dt_dev_pixelpipe_set_realtime(), dt_draw_paint_to_pixbuf(), dt_drawlayer_build_worker_input_dab(), dt_drawlayer_paint_finalize_path(), dt_drawlayer_paint_interpolate_path(), dt_drawlayer_paint_path_state_reset(), dt_drawlayer_paint_queue_raw_input(), dt_drawlayer_paint_runtime_ensure_smudge_pixels(), dt_drawlayer_paint_runtime_get_smudge_pickup(), dt_drawlayer_paint_runtime_get_stroke_damage(), dt_drawlayer_paint_runtime_get_stroke_seed(), dt_drawlayer_paint_runtime_have_smudge_pickup(), dt_drawlayer_paint_runtime_note_dab_damage(), dt_drawlayer_paint_runtime_prepare_dab_context(), dt_drawlayer_paint_runtime_private_create(), dt_drawlayer_paint_runtime_private_destroy(), dt_drawlayer_paint_runtime_private_reset(), dt_drawlayer_paint_runtime_set_smudge_pickup(), dt_drawlayer_paint_runtime_set_stroke_seed(), dt_drawlayer_paint_runtime_smudge_height(), dt_drawlayer_paint_runtime_smudge_pixels(), dt_drawlayer_paint_runtime_smudge_width(), dt_drawlayer_paint_runtime_state_create(), dt_drawlayer_paint_runtime_state_destroy(), dt_drawlayer_paint_runtime_state_reset(), dt_drawlayer_process_state_cleanup(), dt_drawlayer_process_state_init(), dt_drawlayer_process_state_invalidate(), dt_drawlayer_process_state_reset_stroke(), dt_drawlayer_runtime_manager_cleanup(), dt_drawlayer_runtime_manager_init(), dt_drawlayer_runtime_manager_note_buffer_lock(), dt_drawlayer_runtime_manager_note_sidecar_io(), dt_drawlayer_runtime_manager_note_thread(), dt_drawlayer_runtime_manager_update(), dt_drawlayer_set_pipeline_realtime_mode(), dt_drawlayer_ui_cursor_clear(), dt_drawlayer_wait_for_rasterization_modal(), dt_iop_set_cache_bypass(), dt_key_modifier_state(), dt_masks_create_menu(), dt_masks_events_button_pressed(), dt_masks_events_button_released(), dt_masks_get_lock_mode(), dt_masks_reset_bezier_ctrl_points(), dt_masks_toggle_bezier_node_type(), dt_modifier_is(), dt_modifiers_include(), dt_noise_generator_simd(), dt_ui_resizable_drawing_area(), dt_ui_restore_panels(), dt_ui_scroll_wrap(), dt_ui_toggle_panels_visibility(), dt_view_manager_button_pressed(), dt_view_manager_button_released(), dt_view_manager_scrolled(), force_enable(), gaussian_noise_simd(), guide_laplacians(), inpaint_mask(), inpaint_noise(), make_noise(), nlmeans_denoise_cl(), nlmeans_denoiseprofile_cl(), poisson_noise_simd(), process_cl(), process_nlmeans_cl(), scrolled(), scrolled(), scrolled(), scrolled(), setup_color_variables(), show_pango_text(), tree_reveal_func(), uniform_noise_simd(), xoshiro128plus(), and xoshiro128plus().
| const float u2 = xoshiro128plus(state) |
Definition at line 86 of file src/develop/noise_generator.h.
Referenced by _gaussian_random(), dt_drawlayer_brush_mass_primitive_eval(), gaussian_noise_simd(), ldexpk(), and poisson_noise_simd().