1// Aseprite Document IO Library
2// Copyright (c) 2016-2017 David Capello
3//
4// This file is released under the terms of the MIT license.
5// Read LICENSE.txt for more information.
6
7#ifndef DIO_DETECT_FORMAT_H_INCLUDED
8#define DIO_DETECT_FORMAT_H_INCLUDED
9#pragma once
10
11#include "dio/file_format.h"
12
13#include <cstdint>
14#include <string>
15
16namespace dio {
17
18FileFormat detect_format(const std::string& filename);
19FileFormat detect_format_by_file_content_bytes(const uint8_t* buf,
20 const int n);
21FileFormat detect_format_by_file_content(const std::string& filename);
22FileFormat detect_format_by_file_extension(const std::string& filename);
23
24} // namespace dio
25
26#endif
27