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. | |
PNG metadata parser specification.
Definition in file parse_png.h.
| 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()`).
| source | A null-terminated input file already loaded into memory. |
| length | Length of the input file (without the extra null terminator). |
| cx | For output of the real part of the view center. It is already mpfr_init2()'d. |
| cy | For output of the imaginary part of the view center. It is already mpfr_init2()'d. |
| cz | For output of the view radius. It is already mpfr_init2()'d. |
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: