(v16)
#include <assert.h>
#include <stdbool.h>
#include <string.h>
#include "crc.h"
#include "png.h"
Go to the source code of this file.
Macros |
#define | INT(l) { l >> 24 & 0xff, l >> 16 & 0xff, l >> 8 & 0xff, l & 0xff } |
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.
|
Macro Definition Documentation
#define INT |
( |
|
l | ) |
{ l >> 24 & 0xff, l >> 16 & 0xff, l >> 8 & 0xff, l & 0xff } |
Function Documentation
bool png_iTXt |
( |
const char * |
keyword, |
|
|
const char * |
text, |
|
|
unsigned char * |
chunk, |
|
|
int |
length |
|
) |
| |
int png_iTXt_length |
( |
const char * |
keyword, |
|
|
const char * |
text |
|
) |
| |
Determine length of a serialized PNG iTXt chunk.
- Parameters
-
keyword | The keyword for the chunk. |
text | The text for the chunk. |
- Returns
- The length of the chunk.
Definition at line 12 of file png.c.