Mercurial > hg > dmlib
comparison gfxconv.c @ 465:ffd5e730d313
Adjust verbosity levels.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 04 Nov 2012 16:40:37 +0200 |
parents | 4204e9ea8ae1 |
children | 0bfa6a15bb46 |
comparison
equal
deleted
inserted
replaced
464:358776103ceb | 465:ffd5e730d313 |
---|---|
825 | 825 |
826 // Determine input format, if not specified' | 826 // Determine input format, if not specified' |
827 if (optInFormat == FFMT_AUTO && optInFilename != NULL) | 827 if (optInFormat == FFMT_AUTO && optInFilename != NULL) |
828 { | 828 { |
829 char *dext = strrchr(optInFilename, '.'); | 829 char *dext = strrchr(optInFilename, '.'); |
830 dmMsg(2, "Trying to determine file format by extension.\n"); | 830 dmMsg(4, "Trying to determine file format by extension.\n"); |
831 if (dext) | 831 if (dext) |
832 { | 832 { |
833 dmGetFormatByExt(dext + 1, &optInFormat, &optInSubFormat); | 833 dmGetFormatByExt(dext + 1, &optInFormat, &optInSubFormat); |
834 } | 834 } |
835 } | 835 } |
881 | 881 |
882 if (optInFormat == FFMT_AUTO || optInFormat == FFMT_IMAGE) | 882 if (optInFormat == FFMT_AUTO || optInFormat == FFMT_IMAGE) |
883 { | 883 { |
884 DMImageFormat *ifmt = NULL; | 884 DMImageFormat *ifmt = NULL; |
885 int index; | 885 int index; |
886 dmMsg(2, "Trying to probe image formats.\n"); | 886 dmMsg(4, "Trying to probe image formats.\n"); |
887 if (dmImageProbeGeneric(dataBuf + optInSkip, dataSize - optInSkip, &ifmt, &index) > 0) | 887 if (dmImageProbeGeneric(dataBuf + optInSkip, dataSize - optInSkip, &ifmt, &index) > 0) |
888 { | 888 { |
889 optInFormat = FFMT_IMAGE; | 889 optInFormat = FFMT_IMAGE; |
890 optInSubFormat = index; | 890 optInSubFormat = index; |
891 dmMsg(2, "Probed %s format image.\n", ifmt->fext); | 891 dmMsg(2, "Probed %s format image.\n", ifmt->fext); |