Img2Num C++ (Internal Developer Docs) dev
API Documentation
Loading...
Searching...
No Matches
PixelConverter.h
1#ifndef PIXELCONVERTER_H
2#define PIXELCONVERTER_H
3
4#include <cstdint>
5#include <utility> // for std::move
6
7namespace ImageLib {
8template <typename ConverterT>
9
11 ConverterT convert;
12 uint8_t bytesPerPixel;
13
14 PixelConverter(ConverterT conv, uint8_t bpp)
15 : convert(std::move(conv))
16 , bytesPerPixel(bpp) {
17 }
18};
19
20} // namespace ImageLib
21
22#endif