codegen: pass real image width as parameter

This commit is contained in:
András Veres-Szentkirályi 2016-04-19 11:20:14 +02:00
parent dee321d59e
commit d540abd852
2 changed files with 3 additions and 4 deletions

View file

@ -11,7 +11,7 @@ int main() {
float freqs[FREQ_COUNT], msecs[FREQ_COUNT];
convert(img, freqs, msecs);
convert(img, freqs, msecs, x);
for (int i = 0; i < FREQ_COUNT; i++) {
fwrite(&(freqs[i]), 4, 1, stdout);