mightymandel v16

GPU-based Mandelbrot set explorer

parse_sft.c File Reference


#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mpfr.h>
#include "parse.h"
#include "parse_sft.h"
+ Include dependency graph for parse_sft.c:

Go to the source code of this file.


bool parse_sft (const char *source, int length, mpfr_t cx, mpfr_t cy, mpfr_t cz)
 Parse SuperFractalThing .sft file format.

Function Documentation

bool parse_sft ( const char *  source,
int  length,
mpfr_t  cx,
mpfr_t  cy,
mpfr_t  cz 

Parse SuperFractalThing .sft file format.

File format example:


That is, essentially the same content as .mm but with a prefix syntax.

sourceA null-terminated input file already loaded into memory.
lengthLength of the input file (without the extra null terminator).
cxFor output of the real part of the view center. It is already mpfr_init2()'d.
cyFor output of the imaginary part of the view center. It is already mpfr_init2()'d.
czFor output of the view radius. It is already mpfr_init2()'d.
Success (true) or failure (false).

Definition at line 15 of file parse_sft.c.

References parse_line(), precision_for_radius(), and radius_is_valid().

+ Here is the call graph for this function: