+ option=GetImageOption(image_info,"jpeg:dct-method");
+ if (option != (const char *) NULL)
+ switch (*option)
+ {
+ case 'D':
+ case 'd':
+ {
+ if (LocaleCompare(option,"default") == 0)
+ jpeg_info.dct_method=JDCT_DEFAULT;
+ break;
+ }
+ case 'F':
+ case 'f':
+ {
+ if (LocaleCompare(option,"fastest") == 0)
+ jpeg_info.dct_method=JDCT_FASTEST;
+ if (LocaleCompare(option,"float") == 0)
+ jpeg_info.dct_method=JDCT_FLOAT;
+ break;
+ }
+ case 'I':
+ case 'i':
+ {
+ if (LocaleCompare(option,"ifast") == 0)
+ jpeg_info.dct_method=JDCT_IFAST;
+ if (LocaleCompare(option,"islow") == 0)
+ jpeg_info.dct_method=JDCT_ISLOW;
+ break;
+ }
+ }