#include <sadie.h>
#include "sadie_byte.h"
Defines | |
#define | NEEDSWAP 1 |
Functions | |
int | sad_byte_header_write (IMAGE_BYTE *buf, FILE *fp) |
Write a byte image header structure to a disk file (or equivalent). |
The IMG2DSK function in libsadie can write external data in SADIE format with the value of each pixel encoded in a single byte, but it cannot handle the similar internal representation, the IMAGE_BYTE structure, so something more specialized is needed.
|
Write a byte image header structure to a disk file (or equivalent). We play safe by writing each member of the structure independently, in case there are any alignment issues when trying to write the structure as a whole.
|