#include <stdio.h>
#include <stdlib.h>
#include <png.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
Go to the source code of this file.
|
void | generateHeaderFromImage (FILE *file, const char *guardian, const char *variable) |
|
void | generateImplementationFromImage (FILE *file, const char *header, const char *variable, uint32_t width, uint32_t height, png_bytep *pixelsRowPointers) |
|
void | fileNameToSnakeCaseName (const char *fileName, char *snakeCaseName, size_t maxLength) |
|
void | snakeCaseNameToUpperSnakeName (const char *snakeCaseName, char *upperSnakeCaseName, size_t maxLength) |
|
void | camelCaseNameFromSnakeCaseNames (const char *snakeCaseName, const char *upperSnakeCaseName, char *camelCaseName, size_t maxLength) |
|
int | main (int argc, char *argv[]) |
|
◆ ERROR_IF
#define ERROR_IF |
( |
|
cond, |
|
|
|
message |
|
) |
| if (cond) { printf(message); return -1; }; |
◆ MAX_FILENAME_LENGTH
#define MAX_FILENAME_LENGTH 255 |
◆ camelCaseNameFromSnakeCaseNames()
void camelCaseNameFromSnakeCaseNames |
( |
const char * |
snakeCaseName, |
|
|
const char * |
upperSnakeCaseName, |
|
|
char * |
camelCaseName, |
|
|
size_t |
maxLength |
|
) |
| |
◆ fileNameToSnakeCaseName()
void fileNameToSnakeCaseName |
( |
const char * |
fileName, |
|
|
char * |
snakeCaseName, |
|
|
size_t |
maxLength |
|
) |
| |
◆ generateHeaderFromImage()
void generateHeaderFromImage |
( |
FILE * |
file, |
|
|
const char * |
guardian, |
|
|
const char * |
variable |
|
) |
| |
◆ generateImplementationFromImage()
void generateImplementationFromImage |
( |
FILE * |
file, |
|
|
const char * |
header, |
|
|
const char * |
variable, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
png_bytep * |
pixelsRowPointers |
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ snakeCaseNameToUpperSnakeName()
void snakeCaseNameToUpperSnakeName |
( |
const char * |
snakeCaseName, |
|
|
char * |
upperSnakeCaseName, |
|
|
size_t |
maxLength |
|
) |
| |