mightymandel v16

GPU-based Mandelbrot set explorer

parse_png.h File Reference

(v16)

PNG metadata parser specification. More...

#include <stdbool.h>
#include <mpfr.h>
+ Include dependency graph for parse_png.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool parse_png (const char *source, int length, mpfr_t cx, mpfr_t cy, mpfr_t cz)
 Parse the original mightymandel .png metadata file format.

Detailed Description

PNG metadata parser specification.

Definition in file parse_png.h.

Function Documentation

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

Parse the original mightymandel .png metadata file format.

PNG has tEXt chunks with keyword Software set tomightymandelandTitle set to the view coordinates (in the same format asparse_ppm()`).

Parameters
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.
Returns
Success (true) or failure (false).

Definition at line 21 of file parse_png.c.

References crc(), debug_message, INT, log_message, LOG_WARN, precision_for_radius(), and radius_is_valid().

+ Here is the call graph for this function: