~george-edison55/libwebp/old-trunk

« back to all changes in this revision

Viewing changes to examples/cwebp.c

  • Committer: Mikolaj Zalewski
  • Date: 2011-08-29 08:37:13 UTC
  • Revision ID: git-v1:2aa6b80efec40820f78c00706499c6c0133969ed
Slience some Visual Studio warnings.

Change-Id: I62078af80bfcaa82bdc165fc2fc8fce2d2aad862

Show diffs side-by-side

added added

removed removed

Lines of Context:
724
724
  "in the manual (`man cwebp`)",
725
725
  "PARTITION_OVERFLOW: Partition is too big to fit 16M",
726
726
  "BAD_WRITE: Picture writer returned an I/O error"
 
727
  "FILE_TOO_BIG: File would be too big to fit in 4G"
727
728
};
728
729
 
729
730
//------------------------------------------------------------------------------
776
777
    } else if (!strcmp(argv[c], "-m") && c < argc - 1) {
777
778
      config.method = strtol(argv[++c], NULL, 0);
778
779
    } else if (!strcmp(argv[c], "-q") && c < argc - 1) {
779
 
      config.quality = strtod(argv[++c], NULL);
 
780
      config.quality = (float)strtod(argv[++c], NULL);
780
781
    } else if (!strcmp(argv[c], "-size") && c < argc - 1) {
781
782
      config.target_size = strtol(argv[++c], NULL, 0);
782
783
    } else if (!strcmp(argv[c], "-psnr") && c < argc - 1) {
783
 
      config.target_PSNR = strtod(argv[++c], NULL);
 
784
      config.target_PSNR = (float)strtod(argv[++c], NULL);
784
785
    } else if (!strcmp(argv[c], "-sns") && c < argc - 1) {
785
786
      config.sns_strength = strtol(argv[++c], NULL, 0);
786
787
    } else if (!strcmp(argv[c], "-f") && c < argc - 1) {