sandbox
Loading...
Searching...
No Matches
jpg_loader.hpp
1// SPDX-License-Identifier: MIT
2#ifndef LIBSBX_BITMAPS_LOADERS_JPG_LOADER_HPP_
3#define LIBSBX_BITMAPS_LOADERS_JPG_LOADER_HPP_
4
5#include <libsbx/bitmaps/bitmap.hpp>
6
7namespace sbx::bitmaps {
8
9class jpg_loader : public bitmap::loader<jpg_loader> {
10
11 inline static const auto is_registered = jpg_loader::register_extensions(".jpg", ".jpeg");
12
13public:
14
15 static auto load(const std::filesystem::path& path) -> bitmap_data;
16
17}; // class jpg_loader
18
19} // namespace sbx::bitmaps
20
21#endif // LIBSBX_BITMAPS_LOADERS_JPG_LOADER_HPP_
Definition: jpg_loader.hpp:9
Definition: bitmap.hpp:20