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) : convert(std::move(conv)), bytesPerPixel(bpp) {
15 }
16};
17
18} // namespace ImageLib
19
20#endif