printf("\t-o <options>\t\ta comma separated list of input format options\n");
printf("\t\t\t\tEXAMPLE:\n");
printf("\t\t\t\t\t-o draw_mouse=1,framerate=100,video_size=800x480\n");
- printf("\t-s <input path>\t\tthe rescaling method (see swscale.h)\n");
+ printf("\t-s <scaling method>\tthe rescaling method (see swscale.h)\n");
printf("\t-u \t\t\tupscale the image if smaller than the display dimensions\n");
printf("\t-F <format>\t\tthe image format to use (default is JPEG)\n");
printf("\t\t\t\tSUPPORTED FORMATS:\n");
printf("\t\t\t\t\t1 - JPEG\n");
printf("\t\t\t\t\t2 - NV12\n");
- printf("\t-q \t\t\tquality of jpeg sent to the device, between 1 and 100\n");
+ printf("\t-q <quality>\t\tquality of jpeg sent to the device, between 1 and 100\n");
printf("\t-p <power level>\tpower level of device, between %x (off) and %x (maximum)\n", AM7XXX_POWER_OFF, AM7XXX_POWER_TURBO);
printf("\t\t\t\tWARNING: Level 2 and greater require the master AND\n\t\t\t\t\t the slave connector to be plugged in.\n");
printf("\t-h \t\t\tthis help message\n");
break;
case 's':
rescale_method = atoi(optarg);
- switch(format) {
+ switch(rescale_method) {
case SWS_FAST_BILINEAR:
case SWS_BILINEAR:
case SWS_BICUBIC:
default:
fprintf(stderr, "Unsupported rescale method\n");
ret = -EINVAL;
- goto out;;
+ goto out;
}
break;
case 'u':
default:
fprintf(stderr, "Unsupported format\n");
ret = -EINVAL;
- goto out;;
+ goto out;
}
break;
case 'q':
if (quality < 1 || quality > 100) {
fprintf(stderr, "Invalid quality value, must be between 1 and 100\n");
ret = -EINVAL;
- goto out;;
+ goto out;
}
break;
case 'h':