codegen: avoid defining test image in multiple places

This commit is contained in:
András Veres-Szentkirályi 2016-04-20 14:04:57 +02:00
parent c7fecff3e6
commit 5d38b3b52d
2 changed files with 5 additions and 4 deletions

View file

@ -5,9 +5,9 @@
#include "stb_image.h"
#include "codegen.c"
int main() {
int main(int argc, char **argv) {
int x, y, n;
unsigned char *img = stbi_load("320x256rgb.png", &x, &y, &n, 0);
unsigned char *img = stbi_load(argv[1], &x, &y, &n, 0);
float freqs[FREQ_COUNT], msecs[FREQ_COUNT];