436b1d183d
These are deprecated in newer C++ versions.
35 lines
977 B
C++
35 lines
977 B
C++
#ifndef _library__framebuffer_pixfmt_rgb16__hpp__included__
|
|
#define _library__framebuffer_pixfmt_rgb16__hpp__included__
|
|
|
|
#include "framebuffer-pixfmt.hpp"
|
|
|
|
namespace framebuffer
|
|
{
|
|
/**
|
|
* Pixel format RGB16 (5:6:5).
|
|
*/
|
|
template<bool uvswap>
|
|
class _pixfmt_rgb16 : public pixfmt
|
|
{
|
|
public:
|
|
~_pixfmt_rgb16() throw();
|
|
void decode(uint32_t* target, const uint8_t* src, size_t width)
|
|
throw();
|
|
void decode(uint32_t* target, const uint8_t* src, size_t width,
|
|
const auxpalette<false>& auxp) throw();
|
|
void decode(uint64_t* target, const uint8_t* src, size_t width,
|
|
const auxpalette<true>& auxp) throw();
|
|
void set_palette(auxpalette<false>& auxp, uint8_t rshift, uint8_t gshift,
|
|
uint8_t bshift);
|
|
void set_palette(auxpalette<true>& auxp, uint8_t rshift, uint8_t gshift,
|
|
uint8_t bshift);
|
|
uint8_t get_bpp() throw();
|
|
uint8_t get_ss_bpp() throw();
|
|
uint32_t get_magic() throw();
|
|
};
|
|
|
|
extern _pixfmt_rgb16<false> pixfmt_rgb16;
|
|
extern _pixfmt_rgb16<true> pixfmt_bgr16;
|
|
}
|
|
|
|
#endif
|