h->current_metadata->format = 1;
h->current_metadata->channels = 3;
h->current_metadata->depth = 8;
- if (info != NULL)
- *info = RELOAD_OPTIONS;
+ } else if (strcmp(str_Value, "Gray") == 0) {
+ h->current_metadata->format = 0;
+ h->current_metadata->channels = 1;
+ h->current_metadata->depth = 8;
} else {
h->current_metadata->format = 0;
h->current_metadata->channels = 1;
+ h->current_metadata->depth = 1;
}
if (info != NULL)
- *info |= RELOAD_PARAMS;
+ *info = RELOAD_PARAMS | RELOAD_OPTIONS;
break;
case 4: