www.pudn.com > eval-1.2.zip > et.c
#include#include #include #include "write.h" #include "read.h" #include "stat.h" #include "misc.h" static data_t D; static loss_t P, F; int main(int cn, char **cl) { unsigned PoB = 0; char id[42] = {0}; if (cn < 7) { puts("Modified et: et_ra to create the rate adaptive media!!"); puts("usage: et [PoB]"); puts(" tcpdump sender"); puts(" tcpdump receiver"); puts(" tracefile sender"); puts(" transmitted video"); puts(" video with errors (will be generated)"); puts(" id of output file"); puts(" [PoB] optional Play-out buffer size [ms]"); return 0; } strncpy(id, cl[6], sizeof id - 1); if (cn == 8) { PoB = strtoul(cl[7], 0, 10); if (PoB < 10 || PoB > 10000) PoB = 10000; } if (strcmp(cl[1], cl[2]) == 0) { size_t l = strlen(cl[2]); while (l--) if (ToLower(cl[2][l]) == 's') { cl[2][l] = 'r'; break; } } /* AL: Read the tcpdump files, i.e. sd_be and rd_be e.g. from ns-2, and st from mp4 */ /* The RA version shall also read the RA_log file, which tells which Q-value (i.e. file) have been used at what time */ if (!ReadDump(cl, &D, PACKET, 0)) return EXIT_FAILURE; /* { int i, j, k = 0; for (i=0; i