mightymandel v16

GPU-based Mandelbrot set explorer

find_ref.h File Reference

(v16)

Algorithms for finding new reference points. More...

#include "ref_set.h"
#include "blob_set.h"
+ Include dependency graph for find_ref.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  find_ref_t {
  find_ref_failure = -1,
  find_ref_complete = 0,
  find_ref_success = 1
}
 The things that can occur when reference finding. More...

Functions

enum find_ref_t find_ref (struct ref_set *refs, struct blob_set *blobset, int width, int height, const mpfr_t centerx, const mpfr_t centery, const mpfr_t radius, double max_glitch, int max_blob)
 Find a new reference for a possibly glitched image.

Detailed Description

Algorithms for finding new reference points.

Definition in file find_ref.h.

Enumeration Type Documentation

enum find_ref_t

The things that can occur when reference finding.

Enumerator:
find_ref_failure 

There are glitches but no new reference could be found.

find_ref_complete 

There are very few glitches, so the image is complete.

find_ref_success 

A new reference was inserted into the ref_set.

Definition at line 19 of file find_ref.h.

Function Documentation

enum find_ref_t find_ref ( struct ref_set refs,
struct blob_set blobset,
int  width,
int  height,
const mpfr_t  centerx,
const mpfr_t  centery,
const mpfr_t  radius,
double  max_glitch,
int  max_blob 
)

Find a new reference for a possibly glitched image.

The new reference is inserted into the ref_set, failure or success is signalled by return.

Definition at line 26 of file find_ref.c.

References blob_set_contains(), blob_set_insert(), blob::count, find_blobs1(), find_blobs2(), find_ref_complete, find_ref_failure, find_ref_success, blob::i, image_get_glitched(), blob::j, LOG_INFO, log_message, pixel_coordinate(), ref_set_contains(), and ref_set_insert().

Referenced by render_display().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: