registry: add detect_format_by_name()