| 24 | |
| 25 | |
| 26 | void usage(char **argv) |
| 27 | { |
| 28 | fprintf(stderr, "\nUSAGE: %s <bitmap file> [options]\n\n", argv[0]); |
| 29 | fprintf(stderr, "Options:\n"); |
| 30 | fprintf(stderr, "-client <hostname or IP> = Hostname or IP address where the frames should be\n"); |
| 31 | fprintf(stderr, " sent (the VirtualGL Client must be running on that\n"); |
| 32 | fprintf(stderr, " machine) or 0 for local test only\n"); |
| 33 | fprintf(stderr, " (default: %s)\n", |
| 34 | strlen(fconfig.client) > 0 ? |
| 35 | fconfig.client : "read from DISPLAY environment"); |
| 36 | fprintf(stderr, "-port <p> = TCP port on which the VirtualGL Client is listening\n"); |
| 37 | fprintf(stderr, " (default: %d)\n", |
| 38 | fconfig.port < 0 ? RR_DEFAULTPORT : fconfig.port); |
| 39 | fprintf(stderr, "-samp <s> = JPEG chrominance subsampling factor: 0 (gray), 1, 2, or 4\n"); |
| 40 | fprintf(stderr, " (default: %d)\n", fconfig.subsamp); |
| 41 | fprintf(stderr, "-qual <q> = JPEG quality, 1 <= <q> <= 100 (default: %d)\n", |
| 42 | fconfig.qual); |
| 43 | fprintf(stderr, "-tilesize <n> = Width/height of each multithreaded compression/interframe\n"); |
| 44 | fprintf(stderr, " comparison tile (default: %d x %d pixels)\n", |
| 45 | fconfig.tilesize, fconfig.tilesize); |
| 46 | fprintf(stderr, "-rgb = Use RGB (uncompressed) encoding (default is JPEG)\n"); |
| 47 | fprintf(stderr, "-np <n> = Number of threads to use for compression (default: %d)\n\n", |
| 48 | fconfig.np); |
| 49 | exit(1); |
| 50 | } |
| 51 | |
| 52 | |
| 53 | int main(int argc, char **argv) |