#include "aaf.h"
-int read_aaf(FILE * in, struct aaf * _aaf)
+int aaf_read(FILE * in, struct aaf * _aaf)
{
size_t elements = 0;
int i;
return 0;
}
-void free_aaf_glyph_data(struct aaf_glyph_data ** data)
+void aaf_free_glyph_data(struct aaf_glyph_data ** data)
{
int i;
data = NULL;
}
-struct aaf_glyph_data ** read_aaf_glyph_data(FILE * in, struct aaf * _aaf)
+struct aaf_glyph_data ** aaf_read_glyph_data(FILE * in, struct aaf * _aaf)
{
struct aaf_glyph_data ** data = NULL;
long offset;
data[i] = malloc(sizeof(struct aaf_glyph_data));
if (data[i] == NULL) {
perror("Unable to allocate memory for glyph data");
- free_aaf_glyph_data(data);
+ aaf_free_glyph_data(data);
fseek(in, offset, SEEK_SET);
return NULL;
}
data[i]->pixels = malloc(sizeof(uint8_t) * glyph->w * glyph->h);
if (data[i]->pixels == NULL) {
perror("Unable to allocate memory for glyph pixel data");
- free_aaf_glyph_data(data);
+ aaf_free_glyph_data(data);
fseek(in, offset, SEEK_SET);
return NULL;
}
return data;
}
-int write_aaf_glyph_as_pgm(FILE * out, const struct aaf_glyph * glyph, const struct aaf_glyph_data * data)
+int aaf_write_glyph_as_pgm(FILE * out, const struct aaf_glyph * glyph, const struct aaf_glyph_data * data)
{
int w = 0;
int h = 0;