Add a way to autoapply a preset based on picture format.

It is now possible to apply a preset based on the picture format. We
have three categories: LDR, RAW and HDR.

The isldr presets table field has been renamed format at this stage.

For #9540.
Use FOR_RAW introduced in previous commit instead of literal 2.

This is clearer.
Merge branch 'preset-format-filter'

* preset-format-filter:
  Use FOR_RAW introduced in previous commit instead of literal 2.
  Add a way to autoapply a preset based on picture format.