mightymandel v16

GPU-based Mandelbrot set explorer

png.h File Reference

(v16)

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

Go to the source code of this file.

Functions

int png_iTXt_length (const char *keyword, const char *text)
 Determine length of a serialized PNG iTXt chunk.
bool png_iTXt (const char *keyword, const char *text, unsigned char *chunk, int length)
 Serialize a PNG iTXt chunk.

Function Documentation

bool png_iTXt ( const char *  keyword,
const char *  text,
unsigned char *  chunk,
int  length 
)

Serialize a PNG iTXt chunk.

http://www.w3.org/TR/PNG/#5Chunk-layout http://www.w3.org/TR/PNG/#11iTXt

Parameters
keywordThe keyword for the chunk.
textThe text for the chunk.
chunkBuffer for output.
lengthLength of the buffer.
Returns
true if the buffer was large enough, false otherwise.

Definition at line 20 of file png.c.

References crc(), and INT.

+ Here is the call graph for this function:

int png_iTXt_length ( const char *  keyword,
const char *  text 
)

Determine length of a serialized PNG iTXt chunk.

Parameters
keywordThe keyword for the chunk.
textThe text for the chunk.
Returns
The length of the chunk.

Definition at line 12 of file png.c.