/* frame dumper Copyright (C) 2001 Martin Vogt This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation. For more information look at the file COPYRIGHT in this package */ typedef float REAL; #define SSLIMIT 18 #define SBLIMIT 32 #include "dump.h" #include Dump::Dump() { } Dump::~Dump() { } void Dump::dump(REAL out[SBLIMIT][SSLIMIT]) { FILE* f=fopen("dump.raw","a+"); int i; int j; for(i=0;il[i]=0; } for(i=0;i<3;i++) { for(j=0;j<13;j++) { out->s[i][j]=0; } } } void Dump::dump(layer3scalefactor* out) { FILE* f=fopen("dump.raw","a+"); int i; int j; for(i=0;i<23;i++) { fprintf(f,"l[%d]=%d\n",i,out->l[i]); } for(i=0;i<3;i++) { for(j=0;j<13;j++) { fprintf(f,"s[%d][%d]=%d\n",i,j,out->s[i][j]); } } fprintf(f,"---------\n"); fclose(f); }